clray

view src/matrix.h @ 62:d9520da6b801

minor readme fix
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 28 Dec 2015 10:31:58 +0200
parents
children
line source
1 #ifndef MATRIX_H_
2 #define MATRIX_H_
4 class Matrix4x4 {
5 public:
6 float m[16];
8 Matrix4x4();
9 Matrix4x4(const float *mat);
10 Matrix4x4(float m00, float m01, float m02, float m03,
11 float m10, float m11, float m12, float m13,
12 float m20, float m21, float m22, float m23,
13 float m30, float m31, float m32, float m33);
14 Matrix4x4(const Matrix4x4 &mat);
15 Matrix4x4 &operator =(const Matrix4x4 &mat);
17 void identity();
19 float determinant() const;
20 Matrix4x4 adjoint() const;
21 void invert();
22 void transpose();
25 float *operator [](int idx);
26 const float *operator [](int idx) const;
27 };
30 #endif /* MATRIX_H_ */