#ifndef ROTATIONMATRIX_H #define ROTATIONMATRIX_H #include #include #define PI 3.14159265 class RotationMatrix { public: enum eAxis {X = 1, Y = 2, Z = 3}; static const unsigned int DIM = 3; typedef double matrix[DIM][DIM]; RotationMatrix();//add setter to fill this RotationMatrix(double angle, eAxis axis); RotationMatrix(std::vector elements); void PrintMatrix(); void Transpose(); RotationMatrix operator*(const RotationMatrix& m); std::vector operator*(const std::vector& v); private: matrix mat; }; #endif // ROTATIONMATRIX_H