Class for working with matrix 3 x 3.
More...
#include <SMat3.h>
Class for working with matrix 3 x 3.
# This class is a standard for declaration of new classes.
1, 0, 0,
0, 2, 0,
0, 0, 6 );
1, 0, 0,
0, 2, 0,
0, 0, 6 };
Mat3 b( 0, 0, 0, 0, 0, 0, 0, 0, 0 );
Mat3 c = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
- See Also
- Mat4
- Since
- 4.5.32
coat::scripto::Mat3::Mat3 |
( |
| ) |
|
|
inline |
Constructor for building a zero matrix.
Referenced by operator-().
float coat::scripto::Mat3::determinant |
( |
| ) |
const |
|
inline |
Returns determinant of the matrix.
float r = a.determinant();
bool coat::scripto::Mat3::identity |
( |
| ) |
const |
|
inline |
Returns TRUE
when the matrix is identity.
Mat3& coat::scripto::Mat3::invert |
( |
| ) |
|
|
inline |
Invert the matrix.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
a.invert();
Mat3 coat::scripto::Mat3::invertCopy |
( |
| ) |
const |
|
inline |
coat::scripto::Mat3::operator Mat4 |
( |
| ) |
const |
Ability for converting Mat3
to Mat4
.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
auto m = Mat4( a );
coat::scripto::Mat3::operator Quat |
( |
| ) |
const |
Ability for converting Mat3
to Quat
.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
auto m = Quat( a );
coat::scripto::Mat3::operator std::string |
( |
| ) |
const |
Ability for converting Mat3
to string
.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
auto m = string( a );
Mat3& coat::scripto::Mat3::operator() |
( |
int |
row, |
|
|
int |
col, |
|
|
float |
v |
|
) |
| |
|
inline |
float coat::scripto::Mat3::operator() |
( |
int |
row, |
|
|
int |
col |
|
) |
| const |
|
inline |
Getter like array.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
float v00 = a[ 0, 0 ];
float v12 = a[ 1, 2 ];
Mat3 coat::scripto::Mat3::operator- |
( |
| ) |
const |
|
inline |
Negation operator.
References Mat3().
bool coat::scripto::Mat3::operator== |
( |
const Mat3 & |
b | ) |
const |
|
inline |
Comparison.
...
if (a ==
Mat3( 1 )) { ... }
Mat3& coat::scripto::Mat3::orthonormalize |
( |
| ) |
|
|
inline |
Orthonormalize the matrix.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
a.orthonormalize();
Mat3 coat::scripto::Mat3::orthonormalizeCopy |
( |
| ) |
const |
|
inline |
bool coat::scripto::Mat3::orthonormalized |
( |
| ) |
const |
|
inline |
bool coat::scripto::Mat3::symmetric |
( |
| ) |
const |
|
inline |
Returns TRUE
when the matrix is symmetric.
float coat::scripto::Mat3::trace |
( |
| ) |
const |
|
inline |
Returns trace of the matrix.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
float r = a.trace();
Mat3& coat::scripto::Mat3::transpose |
( |
| ) |
|
|
inline |
Transpose the matrix.
1, 0, 0,
0, 2, 0,
0, 0, 6 };
a.transpose();
Mat3 coat::scripto::Mat3::transposeCopy |
( |
| ) |
const |
|
inline |
bool coat::scripto::Mat3::zero |
( |
| ) |
const |
|
inline |
Returns TRUE
when all values of the matrix are zero.
The documentation for this class was generated from the following files:
- 3d-coat/3D-CoatV4/3D-Coat/Scripto/SMat3.h
- 3d-coat/3D-CoatV4/3D-Coat/Scripto/SMat3.cpp