00001 // Matrix Class by Alan Baylis 2001 00002 00003 #ifndef MatrixH 00004 #define MatrixH 00005 00006 #include "vector.h" 00007 #include "quat.h" 00008 00009 class MATRIX 00010 { 00011 public: 00012 MATRIX(); 00013 ~MATRIX(); 00014 00015 void LoadIdentity(); 00016 void CopyMatrix(float m[16]); 00017 void MultMatrix(float m[16]); 00018 void MatrixInverse(); 00019 void MatrixFromAxisAngle(VECTOR axis, float theta); 00020 void QuatToMatrix(QUAT quat); 00021 00022 float Element[16]; 00023 }; 00024 00025 #endif 00026