Class for working with matrix 3 x 3. More...
Public Types | |
| typedef comms::cMat3 | mat3_t |
Public Member Functions | |
| Mat3 () | |
| Constructor for building a zero matrix. | |
| operator Mat4 () const | |
Ability for converting Mat3 to Mat4. More... | |
| operator Quat () const | |
Ability for converting Mat3 to Quat. More... | |
| operator std::string () const | |
Ability for converting Mat3 to string. More... | |
| bool | operator== (const Mat3 &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. | |
| Mat3 & | operator() (int row, int col, float v) |
| Setter like array. More... | |
| float | operator() (int row, int col) const |
| Getter like array. More... | |
| Mat3 | operator- () const |
| Negation operator. More... | |
| Mat3 & | operator+= (const Mat3 &b) |
| Mat3 & | operator-= (const Mat3 &b) |
| Mat3 & | operator*= (const Mat3 &b) |
| Mat3 & | operator*= (const float &k) |
| Mat3 & | operator/= (const float &k) |
| Mat3 | operator+ (const Mat3 &b) const |
| Mat3 | operator- (const Mat3 &b) const |
| Mat3 | operator* (const Mat3 &b) const |
| Mat3 | operator* (const float &k) const |
| Mat3 | operator/ (const float &k) const |
| float | determinant () const |
| Returns determinant of the matrix. More... | |
| float | trace () const |
| Returns trace of the matrix. More... | |
| Mat3 & | invert () |
| Invert the matrix. More... | |
| Mat3 | invertCopy () const |
| Mat3 & | orthonormalize () |
| Orthonormalize the matrix. More... | |
| Mat3 | orthonormalizeCopy () const |
| Mat3 & | transpose () |
| Transpose the matrix. More... | |
| Mat3 | transposeCopy () const |
Static Public Attributes | |
| static const Mat3 | IDENTITY |
| static const Mat3 | ZERO |
Class for working with matrix 3 x 3.
# This class is a standard for declaration of new classes.
| coat::scripto::Mat3::operator Mat4 | ( | ) | const |
| coat::scripto::Mat3::operator Quat | ( | ) | const |
| coat::scripto::Mat3::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 |
Orthonormalize the matrix.
|
inline |
|
inline |
|
inline |