Cortex
10.0.0-a4
|
#include <VectorTraits.h>
Public Types | |
typedef T::BaseType | BaseType |
The type of the components of the vector. | |
Static Public Member Functions | |
static unsigned int | dimensions () |
static BaseType | get (const T &v, unsigned int i) |
static void | set (T &v, unsigned int i, BaseType x) |
The VectorTraits struct provides a means of using different vector classes within templated code. It provides the basis for the functions in VectorOps.h, which provide common vector operations using the underlying VectorTraits classes. The default implementation works for the ImathVec types out of the box. For any other types you may need to specialise it.