35 #ifndef IE_CORE_VECTORTRAITS_H
36 #define IE_CORE_VECTORTRAITS_H
52 static unsigned int dimensions() {
return T::dimensions(); };
53 static BaseType
get(
const T &v,
unsigned int i ) {
return v[i]; };
54 static void set( T &v,
unsigned int i, BaseType x ) { v[i] = x; };
62 static unsigned int dimensions() {
return 1; };
63 static int get(
const int &v,
unsigned int i ) {
return v; };
64 static void set(
int &v,
unsigned int i,
int x ) { v = x; };
72 static unsigned int dimensions() {
return 1; };
73 static float get(
const float &v,
unsigned int i ) {
return v; };
74 static void set(
float &v,
unsigned int i,
float x ) { v = x; };
82 static unsigned int dimensions() {
return 1; };
83 static double get(
const double &v,
unsigned int i ) {
return v; };
84 static void set(
double &v,
unsigned int i,
double x ) { v = x; };
89 #endif // IE_CORE_VECTORTRAITS_H
Definition: VectorTraits.h:48
T::BaseType BaseType
The type of the components of the vector.
Definition: VectorTraits.h:51
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43