35 #ifndef IE_COREMAYA_MATRIXTRAITS_H
36 #define IE_COREMAYA_MATRIXTRAITS_H
38 #include "IECore/MatrixTraits.h"
40 #include "maya/MMatrix.h"
41 #include "maya/MFloatMatrix.h"
47 struct MatrixTraits<MMatrix>
49 typedef double BaseType;
50 static unsigned int dimensions() {
return 4; };
51 static BaseType
get(
const MMatrix &v,
unsigned int i,
unsigned int j ) {
return v[i][j]; };
52 static void set( MMatrix &v,
unsigned int i,
unsigned int j, BaseType x ) { v[i][j] = x; };
56 struct MatrixTraits<MFloatMatrix>
58 typedef float BaseType;
59 static unsigned int dimensions() {
return 4; };
60 static BaseType
get(
const MFloatMatrix &v,
unsigned int i,
unsigned int j ) {
return v[i][j]; };
61 static void set( MFloatMatrix &v,
unsigned int i,
unsigned int j, BaseType x ) { v[i][j] = x; };
66 #endif // IE_COREMAYA_MATRIXTRAITS_H
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43