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

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

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