Class for working with matrix 4 x 4. More...
Public Types | |
typedef comms::cMat4 | mat4_t |
Public Member Functions | |
Mat4 () | |
Constructor for building a zero matrix. | |
operator Quat () const | |
Ability for converting Mat4 to Quat . More... | |
operator std::string () const | |
Ability for converting Mat4 to string . More... | |
bool | operator== (const Mat4 &b) const |
Comparison. More... | |
bool | identity () const |
Returns TRUE when the matrix is identity. | |
bool | orthonormalized () const |
Returns TRUE when the matrix is ortonormal. | |
bool | symmetric () const |
Returns TRUE when the matrix is symmetric. | |
bool | zero () const |
Returns TRUE when all values of the matrix are zero. | |
Mat4 & | operator() (int row, int col, float v) |
Setter like array. More... | |
float | operator() (int row, int col) const |
Getter like array. More... | |
Mat4 & | rotation (const Angles &) |
Angles | rotation () const |
Mat4 & | scaling (const Vec3 &) |
Vec3 | scaling () const |
Mat4 & | translation (const Vec3 &) |
Vec3 | translation () const |
Mat4 | operator- () const |
Negation operator. More... | |
Mat4 & | operator+= (const Mat4 &b) |
Mat4 & | operator-= (const Mat4 &b) |
Mat4 & | operator*= (const Mat4 &b) |
Mat4 & | operator*= (const float &k) |
Mat4 & | operator/= (const float &k) |
Mat4 | operator+ (const Mat4 &b) const |
Mat4 | operator- (const Mat4 &b) const |
Mat4 | operator* (const Mat4 &b) const |
Mat4 | operator* (const float &k) const |
Mat4 | operator/ (const float &k) const |
float | determinant () const |
Returns determinant of the matrix. More... | |
float | trace () const |
Returns trace of the matrix. More... | |
Mat4 & | invert () |
Invert the matrix. More... | |
Mat4 | invertCopy () const |
Mat4 & | transpose () |
Transpose the matrix. More... | |
Mat4 | transposeCopy () const |
Static Public Attributes | |
static const Mat4 | IDENTITY |
static const Mat4 | ZERO |
Class for working with matrix 4 x 4.
coat::scripto::Mat4::operator Quat | ( | ) | const |
coat::scripto::Mat4::operator std::string | ( | ) | const |
|
inline |
|
inline |
Setter like array.
|
inline |
Getter like array.
|
inline |
Returns determinant of the matrix.
|
inline |
|
inline |
Invert the matrix.
|
inline |
|
inline |