Fermat
|
A generic small vector class with the dimension set at compile-time
#include <vector.h>
Public Types | |
typedef vector_type< T, 4 >::type | base_type |
typedef T | value_type |
Public Methods | |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | Vector (const T v) |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | Vector (const T v0, const T v1, const T v2, const T v3) |
template<typename U > | |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | Vector (const Vector< U, 4 > op) |
template<typename U > | |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | Vector (const Vector< U, 3 > op, const T v3) |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | Vector (const base_type v) |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 | dimension () const |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const T & | operator[] (const uint32 i) const |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE T & | operator[] (const uint32 i) |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector< T, 3 > | xyz () const |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector< T, 3 > | zxy () const |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector< T, 3 > | yzx () const |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector< T, 2 > | xy () const |
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Vector< T, 2 > | yx () const |
Static Public Members | |
static const uint32 | DIMENSION = 4 |