35 #ifndef IE_CORE_MATRIXTRAITS_H
36 #define IE_CORE_MATRIXTRAITS_H
40 #include "OpenEXR/ImathMatrix.h"
53 typedef float BaseType;
54 static unsigned int dimensions() { assert( 0 );
return 0; };
55 static BaseType
get(
const T &v,
unsigned int i,
unsigned int j ) { assert( 0 );
return 0; };
56 static void set( T &v,
unsigned int i,
unsigned int j, BaseType x ) { assert( 0 ); };
63 typedef float BaseType;
64 static unsigned int dimensions() {
return 3; };
65 static BaseType
get(
const Imath::M33f &v,
unsigned int i,
unsigned int j ) {
return v[i][j]; };
66 static void set( Imath::M33f &v,
unsigned int i,
unsigned int j, BaseType x ) { v[i][j] = x; };
72 typedef float BaseType;
73 static unsigned int dimensions() {
return 4; };
74 static BaseType
get(
const Imath::M44f &v,
unsigned int i,
unsigned int j ) {
return v[i][j]; };
75 static void set( Imath::M44f &v,
unsigned int i,
unsigned int j, BaseType x ) { v[i][j] = x; };
79 struct MatrixTraits<
Imath::M33d>
81 typedef double BaseType;
82 static unsigned int dimensions() {
return 3; };
83 static BaseType
get(
const Imath::M33d &v,
unsigned int i,
unsigned int j ) {
return v[i][j]; };
84 static void set( Imath::M33d &v,
unsigned int i,
unsigned int j, BaseType x ) { v[i][j] = x; };
88 struct MatrixTraits<
Imath::M44d>
90 typedef double BaseType;
91 static unsigned int dimensions() {
return 4; };
92 static BaseType
get(
const Imath::M44d &v,
unsigned int i,
unsigned int j ) {
return v[i][j]; };
93 static void set( Imath::M44d &v,
unsigned int i,
unsigned int j, BaseType x ) { v[i][j] = x; };
98 #endif // IE_CORE_MATRIXTRAITS_H
Definition: MatrixTraits.h:51
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43