![]() |
Public API Reference |
#include <matrix3.h>
Inheritance diagram for csMatrix3:
Public Methods | |
csMatrix3 () | |
Construct a matrix, initialized to be the identity. More... | |
csMatrix3 (float am11, float am12, float am13, float am21, float am22, float am23, float am31, float am32, float am33) | |
Construct a matrix and initialize it. More... | |
csMatrix3 (const csQuaternion &quat) | |
Construct a matrix with a quaternion. More... | |
csVector3 | Row1 () const |
Get the first row of this matrix as a vector. More... | |
csVector3 | Row2 () const |
Get the second row of this matrix as a vector. More... | |
csVector3 | Row3 () const |
Get the third row of this matrix as a vector. More... | |
csVector3 | Col1 () const |
Get the first column of this matrix as a vector. More... | |
csVector3 | Col2 () const |
Get the second column of this matrix as a vector. More... | |
csVector3 | Col3 () const |
Get the third column of this matrix as a vector. More... | |
void | Set (float m11, float m12, float m13, float m21, float m22, float m23, float m31, float m32, float m33) |
Set matrix values. More... | |
void | Set (const csQuaternion &quat) |
Initialize matrix with a quaternion. More... | |
csMatrix3 & | operator+= (const csMatrix3 &m) |
Add another matrix to this matrix. More... | |
csMatrix3 & | operator-= (const csMatrix3 &m) |
Subtract another matrix from this matrix. More... | |
csMatrix3 & | operator *= (const csMatrix3 &m) |
Multiply another matrix with this matrix. More... | |
csMatrix3 & | operator *= (float s) |
Multiply this matrix with a scalar. More... | |
csMatrix3 & | operator/= (float s) |
Divide this matrix by a scalar. More... | |
csMatrix3 | operator+ () const |
Unary + operator. More... | |
csMatrix3 | operator- () const |
Unary - operator. More... | |
void | Transpose () |
Transpose this matrix. More... | |
csMatrix3 | GetTranspose () const |
Return the transpose of this matrix. More... | |
csMatrix3 | GetInverse () const |
Return the inverse of this matrix. More... | |
void | Invert () |
Invert this matrix. More... | |
float | Determinant () const |
Compute the determinant of this matrix. More... | |
void | Identity () |
Set this matrix to the identity matrix. More... | |
bool | IsIdentity () const |
Check if the matrix is identity. More... | |
Friends | |
csMatrix3 | operator+ (const csMatrix3 &m1, const csMatrix3 &m2) |
Add two matricies. More... | |
csMatrix3 | operator- (const csMatrix3 &m1, const csMatrix3 &m2) |
Subtract two matricies. More... | |
csMatrix3 | operator * (const csMatrix3 &m1, const csMatrix3 &m2) |
Multiply two matricies. More... | |
csVector3 | operator * (const csMatrix3 &m, const csVector3 &v) |
Multiply a vector by a matrix (transform it). More... | |
csMatrix3 | operator * (const csMatrix3 &m, float f) |
Multiply a matrix and a scalar. More... | |
csMatrix3 | operator * (float f, const csMatrix3 &m) |
Multiply a matrix and a scalar. More... | |
csMatrix3 | operator/ (const csMatrix3 &m, float f) |
Divide a matrix by a scalar. More... | |
bool | operator== (const csMatrix3 &m1, const csMatrix3 &m2) |
Check if two matricies are equal. More... | |
bool | operator!= (const csMatrix3 &m1, const csMatrix3 &m2) |
Check if two matricies are not equal. More... | |
bool | operator< (const csMatrix3 &m, float f) |
Test if each component of a matrix is less than a small epsilon value. More... | |
bool | operator> (float f, const csMatrix3 &m) |
Test if each component of a matrix is greater than a small epsilon value. More... |
Definition at line 40 of file matrix3.h.
|
Construct a matrix, initialized to be the identity.
Definition at line 49 of file matrix3.h. Referenced by operator-. |
|
Construct a matrix and initialize it.
|
|
Construct a matrix with a quaternion.
Definition at line 65 of file matrix3.h. References Set. |
|
Get the first column of this matrix as a vector.
|
|
Get the second column of this matrix as a vector.
|
|
Get the third column of this matrix as a vector.
|
|
Compute the determinant of this matrix.
|
|
Return the inverse of this matrix.
Definition at line 130 of file matrix3.h. Referenced by csReversibleTransform::csReversibleTransform, Invert, csReversibleTransform::SetO2T, and csReversibleTransform::SetT2O. |
|
Return the transpose of this matrix.
Referenced by csOrthoTransform::SetO2T, and csOrthoTransform::SetT2O. |
|
Set this matrix to the identity matrix.
|
|
Invert this matrix.
Definition at line 144 of file matrix3.h. References GetInverse. |
|
Check if the matrix is identity.
|
|
Multiply this matrix with a scalar.
|
|
Multiply another matrix with this matrix.
|
|
Unary + operator.
|
|
Add another matrix to this matrix.
|
|
Unary - operator.
Definition at line 116 of file matrix3.h. References csMatrix3. |
|
Subtract another matrix from this matrix.
|
|
Divide this matrix by a scalar.
|
|
Get the first row of this matrix as a vector.
|
|
Get the second row of this matrix as a vector.
|
|
Get the third row of this matrix as a vector.
|
|
Initialize matrix with a quaternion.
|
|
Set matrix values.
Definition at line 86 of file matrix3.h. Referenced by csMatrix3. |
|
Transpose this matrix.
|
|
Multiply a matrix and a scalar.
|
|
Multiply a matrix and a scalar.
|
|
Multiply a vector by a matrix (transform it).
|
|
Multiply two matricies.
|
|
Check if two matricies are not equal.
|
|
Add two matricies.
|
|
Subtract two matricies.
|
|
Divide a matrix by a scalar.
|
|
Test if each component of a matrix is less than a small epsilon value.
|
|
Check if two matricies are equal.
|
|
Test if each component of a matrix is greater than a small epsilon value.
|