Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Faro::Vector4< T > Struct Template Reference

#include <Vector4.hpp>

Public Member Functions

 Vector4 ()
 
 Vector4 (T x, T y, T z, T w)
 
 Vector4 (Vector3< T > v, T w)
 
 Vector4 (Vector2< T > a, Vector2< T > b)
 
Vector3< T > xyz ()
 
Vector2< T > xy ()
 
Vector2< T > zw ()
 
Vector2< T > yz ()
 
void Clear ()
 
Vector4 Lerp (const Vector4 &r, float fact) const
 
String ToString ()
 
template<class N >
Vector4< N > ToType ()
 

Public Attributes

union { 
 
   T   f [4] 
 
   struct { 
 
      T   x 
 
      T   y 
 
      T   z 
 
      T   w 
 
   }  
 
};  
 

Static Public Attributes

static Vector4 zero = { 0, 0, 0, 0 }
 
static Vector4 one = { 1, 1, 1, 1 }
 

Constructor & Destructor Documentation

◆ Vector4() [1/4]

template<class T >
Faro::Vector4< T >::Vector4 ( )
inline

◆ Vector4() [2/4]

template<class T >
Faro::Vector4< T >::Vector4 ( x,
y,
z,
w 
)
inline

◆ Vector4() [3/4]

template<class T >
Faro::Vector4< T >::Vector4 ( Vector3< T >  v,
w 
)
inline

◆ Vector4() [4/4]

template<class T >
Faro::Vector4< T >::Vector4 ( Vector2< T >  a,
Vector2< T >  b 
)
inline

Member Function Documentation

◆ Clear()

template<class T >
void Faro::Vector4< T >::Clear ( )
inline

◆ Lerp()

template<class T >
Vector4 Faro::Vector4< T >::Lerp ( const Vector4< T > &  r,
float  fact 
) const
inline

◆ ToString()

template<class T >
String Faro::Vector4< T >::ToString ( )
inline

◆ ToType()

template<class T >
template<class N >
Vector4< N > Faro::Vector4< T >::ToType ( )
inline

◆ xy()

template<class T >
Vector2< T > Faro::Vector4< T >::xy ( )
inline

◆ xyz()

template<class T >
Vector3< T > Faro::Vector4< T >::xyz ( )
inline

◆ yz()

template<class T >
Vector2< T > Faro::Vector4< T >::yz ( )
inline

◆ zw()

template<class T >
Vector2< T > Faro::Vector4< T >::zw ( )
inline

Member Data Documentation

◆ [union]

union { ... } Faro::Vector4< T >

◆ f

template<class T >
T Faro::Vector4< T >::f[4]

◆ one

template<class T >
Vector4< T > Faro::Vector4< T >::one = { 1, 1, 1, 1 }
static

◆ w

template<class T >
T Faro::Vector4< T >::w

◆ x

template<class T >
T Faro::Vector4< T >::x

◆ y

template<class T >
T Faro::Vector4< T >::y

◆ z

template<class T >
T Faro::Vector4< T >::z

◆ zero

template<class T >
Vector4< T > Faro::Vector4< T >::zero = { 0, 0, 0, 0 }
static

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