summaryrefslogtreecommitdiff
path: root/engine/matrix.h
blob: b6e4e3c9622b292d874083831b5aea68c725ed06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MATRIX_H
#define MATRIX_H

#include "vector.h"

template<int M, int N>
class Matrix {
	public:
		float m[M][N];
};

class Matrix2 : Matrix<2, 2> {
	public:
		Matrix2();
		Matrix2(float m00, float m01, float m10, float m11);
		
		Vector2 operator*(const Vector2& v);
};

Matrix2 rotation_matrix(float rot);

#endif