#ifndef MATRIX_H #define MATRIX_H #include "vector.h" template class Matrix { public: float m[M][N]; }; class Matrix2 : Matrix<2, 2> { public: Matrix2(); Matrix2(float m00, float m01, float m10, float m11); Matrix2 operator*(const Matrix2& mat); Matrix2 operator*(float f); Vector2 operator*(const Vector2& v); }; Matrix2 rotation_matrix(float rot); #endif