clray

annotate 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
rev   line source
nuclear@13 1 #ifndef MATRIX_H_
nuclear@13 2 #define MATRIX_H_
nuclear@13 3
nuclear@13 4 class Matrix4x4 {
nuclear@13 5 public:
nuclear@13 6 float m[16];
nuclear@13 7
nuclear@13 8 Matrix4x4();
nuclear@13 9 Matrix4x4(const float *mat);
nuclear@13 10 Matrix4x4(float m00, float m01, float m02, float m03,
nuclear@13 11 float m10, float m11, float m12, float m13,
nuclear@13 12 float m20, float m21, float m22, float m23,
nuclear@13 13 float m30, float m31, float m32, float m33);
nuclear@13 14 Matrix4x4(const Matrix4x4 &mat);
nuclear@13 15 Matrix4x4 &operator =(const Matrix4x4 &mat);
nuclear@13 16
nuclear@13 17 void identity();
nuclear@13 18
nuclear@13 19 float determinant() const;
nuclear@13 20 Matrix4x4 adjoint() const;
nuclear@13 21 void invert();
nuclear@13 22 void transpose();
nuclear@13 23
nuclear@13 24
nuclear@13 25 float *operator [](int idx);
nuclear@13 26 const float *operator [](int idx) const;
nuclear@13 27 };
nuclear@13 28
nuclear@13 29
nuclear@13 30 #endif /* MATRIX_H_ */