DDraceNetwork Docs
vector2_base< T > Class Template Reference

#include <vmath.h>

Public Member Functions

constexpr vector2_base ()=default
 
constexpr vector2_base (T nx, T ny)
 
vector2_base operator- () const
 
vector2_base operator- (const vector2_base &vec) const
 
vector2_base operator+ (const vector2_base &vec) const
 
vector2_base operator* (const T rhs) const
 
vector2_base operator* (const vector2_base &vec) const
 
vector2_base operator/ (const T rhs) const
 
vector2_base operator/ (const vector2_base &vec) const
 
const vector2_baseoperator+= (const vector2_base &vec)
 
const vector2_baseoperator-= (const vector2_base &vec)
 
const vector2_baseoperator*= (const T rhs)
 
const vector2_baseoperator*= (const vector2_base &vec)
 
const vector2_baseoperator/= (const T rhs)
 
const vector2_baseoperator/= (const vector2_base &vec)
 
bool operator== (const vector2_base &vec) const
 
bool operator!= (const vector2_base &vec) const
 
T & operator[] (const int index)
 

Public Attributes

union {
   T   x
 
   T   u
 
}; 
 
union {
   T   y
 
   T   v
 
}; 
 

Constructor & Destructor Documentation

◆ vector2_base() [1/2]

template<typename T >
constexpr vector2_base< T >::vector2_base ( )
constexprdefault

◆ vector2_base() [2/2]

template<typename T >
constexpr vector2_base< T >::vector2_base ( nx,
ny 
)
inlineconstexpr

Member Function Documentation

◆ operator!=()

template<typename T >
bool vector2_base< T >::operator!= ( const vector2_base< T > &  vec) const
inline

◆ operator*() [1/2]

template<typename T >
vector2_base vector2_base< T >::operator* ( const T  rhs) const
inline

◆ operator*() [2/2]

template<typename T >
vector2_base vector2_base< T >::operator* ( const vector2_base< T > &  vec) const
inline

◆ operator*=() [1/2]

template<typename T >
const vector2_base & vector2_base< T >::operator*= ( const T  rhs)
inline

◆ operator*=() [2/2]

template<typename T >
const vector2_base & vector2_base< T >::operator*= ( const vector2_base< T > &  vec)
inline

◆ operator+()

template<typename T >
vector2_base vector2_base< T >::operator+ ( const vector2_base< T > &  vec) const
inline

◆ operator+=()

template<typename T >
const vector2_base & vector2_base< T >::operator+= ( const vector2_base< T > &  vec)
inline

◆ operator-() [1/2]

template<typename T >
vector2_base vector2_base< T >::operator- ( ) const
inline

◆ operator-() [2/2]

template<typename T >
vector2_base vector2_base< T >::operator- ( const vector2_base< T > &  vec) const
inline

◆ operator-=()

template<typename T >
const vector2_base & vector2_base< T >::operator-= ( const vector2_base< T > &  vec)
inline

◆ operator/() [1/2]

template<typename T >
vector2_base vector2_base< T >::operator/ ( const T  rhs) const
inline

◆ operator/() [2/2]

template<typename T >
vector2_base vector2_base< T >::operator/ ( const vector2_base< T > &  vec) const
inline

◆ operator/=() [1/2]

template<typename T >
const vector2_base & vector2_base< T >::operator/= ( const T  rhs)
inline

◆ operator/=() [2/2]

template<typename T >
const vector2_base & vector2_base< T >::operator/= ( const vector2_base< T > &  vec)
inline

◆ operator==()

template<typename T >
bool vector2_base< T >::operator== ( const vector2_base< T > &  vec) const
inline

◆ operator[]()

template<typename T >
T & vector2_base< T >::operator[] ( const int  index)
inline

Member Data Documentation

◆ 

union { ... } vector2_base< T >::@14

◆ 

union { ... } vector2_base< T >::@16

◆ u

template<typename T >
T vector2_base< T >::u

◆ v

template<typename T >
T vector2_base< T >::v

◆ x

template<typename T >
T vector2_base< T >::x

◆ y

template<typename T >
T vector2_base< T >::y

The documentation for this class was generated from the following file: