clray
view src/matrix.h @ 51:9c0867942612
changed the binary target to clray
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 02 Sep 2010 01:41:51 +0100 |
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_ */