CS::Math::Matrix4 Class Reference
A 4x4 matrix. More...
#include <csgeom/matrix4.h>
Public Member Functions | |
csVector4 | Col (size_t n) const |
Get a column from this matrix as a vector. | |
csVector4 | Col1 () const |
Get the first column of this matrix as a vector. | |
csVector4 | Col2 () const |
Get the second column of this matrix as a vector. | |
csVector4 | Col3 () const |
Get the third column of this matrix as a vector. | |
csVector4 | Col4 () const |
Get the third column of this matrix as a vector. | |
csString | Description () const |
Return a textual representation of the matrix. | |
float | Determinant () const |
Compute determinant of this matrix. | |
Matrix4 | GetInverse () const |
Return the inverse of this matrix. | |
csTransform | GetTransform () const |
Return a csTransform object representation of the matrix. | |
Matrix4 | GetTranspose () const |
Return the transpose of this matrix. | |
void | Invert () |
Invert this matrix. | |
Matrix4 (csMatrix3 const &m) | |
Construct from a 3x3 matrix. | |
Matrix4 (csTransform const &o) | |
Construct from a transform. | |
Matrix4 (Matrix4 const &o) | |
Copy constructor. | |
Matrix4 (float am11, float am12, float am13, float am14, float am21, float am22, float am23, float am24, float am31, float am32, float am33, float am34, float am41, float am42, float am43, float am44) | |
Construct a matrix and initialize it. | |
Matrix4 () | |
Construct a matrix, initialized to be the identity. | |
csVector4 | operator* (const csVector4 &v) const |
Multiply matrix with a Vector. | |
Matrix4 & | operator*= (float f) |
Scale complete matrix. | |
Matrix4 & | operator/= (float f) |
Scale complete matrix. | |
Matrix4 & | operator= (const Matrix4 &o) |
Assign another matrix to this one. | |
csVector4 | Row (size_t n) const |
Get a row from this matrix as a vector. | |
csVector4 | Row1 () const |
Get the first row of this matrix as a vector. | |
csVector4 | Row2 () const |
Get the second row of this matrix as a vector. | |
csVector4 | Row3 () const |
Get the third row of this matrix as a vector. | |
csVector4 | Row4 () const |
Get the third row of this matrix as a vector. | |
void | Transpose () |
Transpose this matrix. | |
Friends | |
Matrix4 | operator* (const Matrix4 &m1, const Matrix4 &m2) |
Multiply two matrices. |
Detailed Description
A 4x4 matrix.
Definition at line 43 of file matrix4.h.
Constructor & Destructor Documentation
CS::Math::Matrix4::Matrix4 | ( | ) | [inline] |
CS::Math::Matrix4::Matrix4 | ( | float | am11, | |
float | am12, | |||
float | am13, | |||
float | am14, | |||
float | am21, | |||
float | am22, | |||
float | am23, | |||
float | am24, | |||
float | am31, | |||
float | am32, | |||
float | am33, | |||
float | am34, | |||
float | am41, | |||
float | am42, | |||
float | am43, | |||
float | am44 | |||
) | [inline] |
CS::Math::Matrix4::Matrix4 | ( | Matrix4 const & | o | ) | [inline] |
CS::Math::Matrix4::Matrix4 | ( | csTransform const & | o | ) | [inline] |
CS::Math::Matrix4::Matrix4 | ( | csMatrix3 const & | m | ) | [inline] |
Member Function Documentation
csVector4 CS::Math::Matrix4::Col | ( | size_t | n | ) | const [inline] |
csVector4 CS::Math::Matrix4::Col1 | ( | ) | const [inline] |
csVector4 CS::Math::Matrix4::Col2 | ( | ) | const [inline] |
csVector4 CS::Math::Matrix4::Col3 | ( | ) | const [inline] |
csVector4 CS::Math::Matrix4::Col4 | ( | ) | const [inline] |
csString CS::Math::Matrix4::Description | ( | ) | const |
Return a textual representation of the matrix.
float CS::Math::Matrix4::Determinant | ( | ) | const [inline] |
Matrix4 CS::Math::Matrix4::GetInverse | ( | ) | const [inline] |
csTransform CS::Math::Matrix4::GetTransform | ( | ) | const |
Return a csTransform object representation of the matrix.
Matrix4 CS::Math::Matrix4::GetTranspose | ( | ) | const [inline] |
void CS::Math::Matrix4::Invert | ( | ) | [inline] |
Matrix4& CS::Math::Matrix4::operator*= | ( | float | f | ) | [inline] |
Matrix4& CS::Math::Matrix4::operator/= | ( | float | f | ) | [inline] |
csVector4 CS::Math::Matrix4::Row | ( | size_t | n | ) | const [inline] |
csVector4 CS::Math::Matrix4::Row1 | ( | ) | const [inline] |
csVector4 CS::Math::Matrix4::Row2 | ( | ) | const [inline] |
csVector4 CS::Math::Matrix4::Row3 | ( | ) | const [inline] |
csVector4 CS::Math::Matrix4::Row4 | ( | ) | const [inline] |
void CS::Math::Matrix4::Transpose | ( | ) | [inline] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
- csgeom/matrix4.h
Generated for Crystal Space 2.0 by doxygen 1.6.1