libvmath4

view src/matrix.h @ 0:4d6383605d64

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 05 Oct 2014 04:00:05 +0300
parents
children
line source
1 #ifndef MATRIX_H_
2 #define MATRIX_H_
4 namespace vmath {
6 class Matrix3x3 {
7 private:
8 float m[3][3];
10 public:
11 static Matrix3x3 id;
13 Matrix3x3();
14 Matrix3x3(const float *m);
15 Matrix3x3(float m00, float m01, float m02,
16 float m10, float m11, float m12,
17 float m20, float m21, float m22);
18 };
20 class Matrix4x4 {
21 private:
22 float m[4][4];
24 public:
25 static Matrix4x4 id;
27 Matrix4x4();
28 Matrix4x4(const float *m);
29 Matrix4x4(float m00, float m01, float m02, float m03,
30 float m10, float m11, float m12, float m13,
31 float m20, float m21, float m22, float m23,
32 float m30, float m31, float m32, float m33);
33 };
35 #include "matrix.inl"
37 } // namespace vmath
39 #endif // MATRIX_H_