DDraceNetwork Docs
vector4_base< T > Class Template Reference

#include <vmath.h>

Public Member Functions

constexpr vector4_base ()=default
 
constexpr vector4_base (T nx, T ny, T nz, T nw)
 
vector4_base operator+ (const vector4_base &vec) const
 
vector4_base operator- (const vector4_base &vec) const
 
vector4_base operator- () const
 
vector4_base operator* (const vector4_base &vec) const
 
vector4_base operator* (const T rhs) const
 
vector4_base operator/ (const vector4_base &vec) const
 
vector4_base operator/ (const T vec) const
 
const vector4_baseoperator+= (const vector4_base &vec)
 
const vector4_baseoperator-= (const vector4_base &vec)
 
const vector4_baseoperator*= (const T rhs)
 
const vector4_baseoperator*= (const vector4_base &vec)
 
const vector4_baseoperator/= (const T rhs)
 
const vector4_baseoperator/= (const vector4_base &vec)
 
bool operator== (const vector4_base &vec) const
 
bool operator!= (const vector4_base &vec) const
 

Public Attributes

union {
   T   x
 
   T   r
 
   T   h
 
}; 
 
union {
   T   y
 
   T   g
 
   T   s
 
}; 
 
union {
   T   z
 
   T   b
 
   T   l
 
}; 
 
union {
   T   w
 
   T   a
 
}; 
 

Constructor & Destructor Documentation

◆ vector4_base() [1/2]

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

◆ vector4_base() [2/2]

template<typename T >
constexpr vector4_base< T >::vector4_base ( nx,
ny,
nz,
nw 
)
inlineconstexpr

Member Function Documentation

◆ operator!=()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

◆ operator-=()

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

◆ operator/() [1/2]

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

◆ operator/() [2/2]

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

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

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

◆ operator==()

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

Member Data Documentation

◆ 

union { ... } vector4_base< T >::@26

◆ 

union { ... } vector4_base< T >::@28

◆ 

union { ... } vector4_base< T >::@30

◆ 

union { ... } vector4_base< T >::@32

◆ a

template<typename T >
T vector4_base< T >::a

◆ b

template<typename T >
T vector4_base< T >::b

◆ g

template<typename T >
T vector4_base< T >::g

◆ h

template<typename T >
T vector4_base< T >::h

◆ l

template<typename T >
T vector4_base< T >::l

◆ r

template<typename T >
T vector4_base< T >::r

◆ s

template<typename T >
T vector4_base< T >::s

◆ w

template<typename T >
T vector4_base< T >::w

◆ x

template<typename T >
T vector4_base< T >::x

◆ y

template<typename T >
T vector4_base< T >::y

◆ z

template<typename T >
T vector4_base< T >::z

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