|
| Mat3 () noexcept |
| ctor will always create an identity matrix More...
|
|
| Mat3 (Real _00, Real _01, Real _02, Real _10, Real _11, Real _12, Real _20, Real _21, Real _22) noexcept |
| ctor passing in value More...
|
|
| Mat3 (const Mat4 &_m) noexcept |
| copy ctor from mat4 will copy left up and fwd vectors More...
|
|
| Mat3 (const Mat3 &_m) noexcept |
| copy ctor with reference object More...
|
|
| Mat3 (const Real _m) noexcept |
| copy ctor with Real useful for Matrix m=1; for identity or Matrix m=3.5 for uniform scale More...
|
|
void | setAtXY (GLint _x, GLint _y, Real _equals) noexcept |
| set the value at m_m[_x][_y] to _equals More...
|
|
const Mat3 & | null () noexcept |
| clear the matrix to all 0 More...
|
|
const Mat3 & | identity () noexcept |
| make the matrix m the identity matrix
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
More...
|
|
Mat3 | operator* (const Mat3 &_m) const noexcept |
| operator for matrix multiplication More...
|
|
const Mat3 & | operator*= (const Mat3 &_m) noexcept |
| operator to mult this matrix by value _m More...
|
|
Mat3 | operator+ (const Mat3 &_m) const noexcept |
| operator to add two matrices together More...
|
|
const Mat3 & | operator+= (const Mat3 &_m) noexcept |
| += operator More...
|
|
Mat3 | operator* (Real _i) const noexcept |
| operator to mult matrix by a scalar More...
|
|
const Mat3 & | operator*= (Real _i) noexcept |
| *= operator with a scalar value More...
|
|
Vec3 | operator* (const Vec3 &_v) const noexcept |
| multiply this by a Vec3 More...
|
|
const Mat3 & | transpose () noexcept |
| method to transpose the matrix More...
|
|
void | rotateX (Real _deg) noexcept |
| set this matrix to a rotation matrix in the X axis for value _deg note the matrix should be set to identity before doing this More...
|
|
void | rotateY (Real _deg) noexcept |
| set this matrix to a rotation matrix in the Y axis for value _deg note the matrix should be set to identity before doing this More...
|
|
void | rotateZ (Real _deg) noexcept |
| set this matrix to a rotation matrix in the Z axis for value _deg note the matrix should be set to identity before doing this More...
|
|
void | scale (Real _x, Real _y, Real _z) noexcept |
| set the matrix scale values More...
|
|
Real | determinant () const noexcept |
| get the determinant of the matrix More...
|
|
Mat3 | inverse () noexcept |
| set the matrix to be the inverse More...
|
|
void | euler (Real _angle, Real _x, Real _y, Real _z) noexcept |
| axis / angle rotation using the Euler method More...
|
|
Real * | openGL () noexcept |
| accesor to the openGL matrix More...
|
|
Vec3 | getLeftVector () const noexcept |
| get the left vector of the matrix (-ve 1st Row) More...
|
|
Vec3 | getRightVector () const noexcept |
| get the right vector of the matrix ( 1nd Row) More...
|
|
Vec3 | getUpVector () const noexcept |
| get the up vector of the matrix (2nd Row) More...
|
|
Vec3 | getDownVector () const noexcept |
| get the down vector of the matrix ( -ve 2nd Row) More...
|
|
Vec3 | getForwardVector () const noexcept |
| get the forward vector of the matrix (-ve 3rd Row) More...
|
|
Vec3 | getBackVector () const noexcept |
| get the back vector of the matrix ( 3nd Row) More...
|
|
|
Real | m_m [3][3] |
| Mat3 element m_m as a 4x4 array mapped by union to m_nn elements and m_openGL. More...
|
|
std::array< Real, 9 > | m_openGL |
| The matrix in m_openGL 16 Real array format usefull for OpenGL fv formats mapped to m_m[][] elements and m_xx elements. More...
|
|
Real | m_00 |
| individual matrix element maps to m_m[0][0] or m_openGL[0] More...
|
|
Real | m_01 |
| individual matrix element maps to m_m[0][1] or m_openGL[1] More...
|
|
Real | m_02 |
| individual matrix element maps to m_m[0][2] or m_openGL[2] More...
|
|
Real | m_10 |
| individual matrix element maps to m_m[1][0] or m_openGL[4] More...
|
|
Real | m_11 |
| individual matrix element maps to m_m[1][1] or m_openGL[5] More...
|
|
Real | m_12 |
| individual matrix element maps to m_m[1][2] or m_openGL[6] More...
|
|
Real | m_20 |
| individual matrix element maps to m_m[2][0] or m_openGL[8] More...
|
|
Real | m_21 |
| individual matrix element maps to m_m[2][1] or m_openGL[9] More...
|
|
Real | m_22 |
| individual matrix element maps to m_m[2][2] or m_openGL[10] More...
|
|
Mat3 basic 3x3 matrix for certain glsl ops.
- Author
- Jonathan Macey
- Version
- 1.0
- Date
- 27/10/11
Definition at line 43 of file Mat3.h.