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

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

template<class T >
mathfu::VectorPacked< T, 3 >::VectorPacked ( const Vector< T, 3 > &  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, 3 >::operator= ( const Vector< T, 3 > &  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: