MathFu
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Friends Groups Pages
mathfu::VectorPacked< T, 4 > Struct Template Reference

Public Member Functions

 VectorPacked ()
 Create an uninitialized VectorPacked.
 
 VectorPacked (const Vector< T, 4 > &vector)
 
VectorPackedoperator= (const Vector< T, 4 > &vector)
 

Public Attributes

union mathfu::VectorPacked< T, 4 >:: { ... }  
 Elements of the packed vector one per dimension.
 
data [4]
 
x
 
y
 
z
 
w
 

Constructor & Destructor Documentation

template<class T >
mathfu::VectorPacked< T, 4 >::VectorPacked ( const Vector< T, 4 > &  vector)
inlineexplicit

Create a VectorPacked from a Vector.

Both VectorPacked and Vector must have the same number of dimensions.

Parameters
vectorVector to create the VectorPacked from.

Member Function Documentation

template<class T >
VectorPacked& mathfu::VectorPacked< T, 4 >::operator= ( const Vector< T, 4 > &  vector)
inline

Copy a Vector to a VectorPacked.

Both VectorPacked and Vector must have the same number of dimensions.

Parameters
vectorVector to copy to the VectorPacked.
Returns
A reference to this VectorPacked.

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