Public Member Functions |
| m4x4 () |
| m4x4 (const m3x3< Real > &mat) |
| m4x4 (const m4x4< Real > &mat) |
| m4x4 (const Real *f) |
| m4x4 (const Real a, const Real b, const Real c, const Real d, const Real e, const Real f, const Real g, const Real h, const Real i, const Real j, const Real k, const Real l, const Real m, const Real n, const Real o, const Real p) |
m4x4< Real > & | set (const Real a, const Real b, const Real c, const Real d, const Real e, const Real f, const Real g, const Real h, const Real i, const Real j, const Real k, const Real l, const Real m, const Real n, const Real o, const Real p) |
m4x4< Real > & | get (Real &a, Real &b, Real &c, Real &d, Real &e, Real &f, Real &g, Real &h, Real &i, Real &j, Real &k, Real &l, Real &m, Real &n, Real &o, Real &p) |
m4x4< Real > & | zero (void) |
m4x4< Real > & | identity (void) |
| Set identity matrix.
|
Real | det (void) |
| Determinant of matrix.
|
m4x4< Real > & | transpose (void) |
| Transpose matrix.
|
m4x4< Real > & | invert (void) |
| Invert matrix.
|
m4x4< Real > & | asTranslation (const Real x, const Real y, const Real z) |
| Set the matrix to a tramslation matix.
|
m4x4< Real > & | asRotation (const Real x, const Real y, const Real z) |
| Set the matrix to a rotation matix.
|
m4x4< Real > & | asRotationX (const Real angle) |
| Set the matrix to a x-rotation-matix.
|
m4x4< Real > & | asRotationY (const Real angle) |
| Set the matrix to a y-rotation-matix.
|
m4x4< Real > & | asRotationZ (const Real angle) |
| Set the matrix to a z-rotation-matix.
|
m4x4< Real > & | asScale (const Real x, const Real y, const Real z) |
| Set the matrix to a scale matix.
|
m4x4< Real > & | projection (const int width, const int height, const Real Near, const Real Far, const Real FOV) |
m4x4< Real > & | lookAt (const v3< Real > &camPos, const v3< Real > &camDirUnion, const v3< Real > &camUp) |
m4x4< Real > & | lookAt (const Real eyex, const Real eyey, const Real eyez, const Real centerx, const Real centery, const Real centerz, const Real upx, const Real upy, const Real upz) |
m3x3< Real > | as3x3 (void) |
| Convert to a 3x3 matrix.
|
const m3x3< Real > | as3x3 (void) const |
| Convert to a 3x3 matrix.
|
m4x4< Real > & | operator= (const m4x4< Real > &a) |
m4x4< Real > & | operator+= (const m4x4< Real > &a) |
m4x4< Real > & | operator-= (const m4x4< Real > &a) |
m4x4< Real > & | operator*= (const m4x4< Real > &a) |
bool | operator== (const m4x4< Real > &a) |
bool | operator!= (const m4x4< Real > &a) |
v4< Real > & | operator[] (const int i) |
const v4< Real > & | operator[] (const int i) const |
Real & | operator() (const int i) |
const Real | operator() (const int i) const |
Real & | operator() (const int row, const int col) |
const Real | operator() (const int row, const int col) const |
Public Attributes |
union { |
struct { |
Real m [4][4] |
} | |
struct { |
Real m16 [16] |
} | |
struct { |
v4< Real > v [4] |
} | |
}; | |
4x4 Real matrix. This class can be used to define 3D transformations like rotating or transforming.