csMatrix2 Class Reference
[Geometry utilities]
A 2x2 matrix.
More...
#include <csgeom/matrix2.h>
Public Member Functions | |
csMatrix2 () | |
Construct a matrix, initialized to be the identity. | |
csMatrix2 (float m11, float m12, float m21, float m22) | |
Construct a matrix and initialize it. | |
csVector2 | Row1 () const |
Get the first row of this matrix as a vector. | |
csVector2 | Row2 () const |
Get the second row of this matrix as a vector. | |
csVector2 | Col1 () const |
Get the first column of this matrix as a vector. | |
csVector2 | Col2 () const |
Get the second column of this matrix as a vector. | |
void | Set (float m11, float m12, float m21, float m22) |
Set matrix values. | |
csMatrix2 & | operator+= (const csMatrix2 &m) |
Add another matrix to this matrix. | |
csMatrix2 & | operator-= (const csMatrix2 &m) |
Subtract another matrix from this matrix. | |
csMatrix2 & | operator *= (const csMatrix2 &m) |
Multiply another matrix with this matrix. | |
csMatrix2 & | operator *= (float s) |
Multiply this matrix with a scalar. | |
csMatrix2 & | operator/= (float s) |
Divide this matrix by a scalar. | |
csMatrix2 | operator+ () const |
Unary + operator. | |
csMatrix2 | operator- () const |
Unary - operator. | |
void | Transpose () |
Transpose this matrix. | |
csMatrix2 | GetTranspose () const |
Return the transpose of this matrix. | |
csMatrix2 | GetInverse () const |
Return the inverse of this matrix. | |
void | Invert () |
Invert this matrix. | |
float | Determinant () const |
Compute the determinant of this matrix. | |
void | Identity () |
Set this matrix to the identity matrix. | |
Friends | |
csMatrix2 | operator+ (const csMatrix2 &m1, const csMatrix2 &m2) |
Add two matricies. | |
csMatrix2 | operator- (const csMatrix2 &m1, const csMatrix2 &m2) |
Subtract two matricies. | |
csMatrix2 | operator * (const csMatrix2 &m1, const csMatrix2 &m2) |
Multiply two matricies. | |
csVector2 | operator * (const csMatrix2 &m, const csVector2 &v) |
Multiply a vector by a matrix (transform it). | |
csMatrix2 | operator * (const csMatrix2 &m, float f) |
Multiply a matrix and a scalar. | |
csMatrix2 | operator * (float f, const csMatrix2 &m) |
Multiply a matrix and a scalar. | |
csMatrix2 | operator/ (const csMatrix2 &m, float f) |
Divide a matrix by a scalar. |
Detailed Description
A 2x2 matrix.
Definition at line 36 of file matrix2.h.
Constructor & Destructor Documentation
|
Construct a matrix, initialized to be the identity.
Referenced by GetInverse(), and operator-(). |
|
Construct a matrix and initialize it.
|
Member Function Documentation
|
Get the first column of this matrix as a vector.
|
|
Get the second column of this matrix as a vector.
|
|
Compute the determinant of this matrix.
|
|
Return the inverse of this matrix.
Definition at line 100 of file matrix2.h. References csMatrix2(). Referenced by Invert(). |
|
Return the transpose of this matrix.
|
|
Set this matrix to the identity matrix.
|
|
Invert this matrix.
Definition at line 107 of file matrix2.h. References GetInverse(). |
|
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 88 of file matrix2.h. References csMatrix2(). |
|
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.
|
|
Set matrix values.
|
|
Transpose this matrix.
|
Friends And Related Function Documentation
|
Multiply a matrix and a scalar.
|
|
Multiply a matrix and a scalar.
|
|
Multiply a vector by a matrix (transform it).
|
|
Multiply two matricies.
|
|
Add two matricies.
|
|
Subtract two matricies.
|
|
Divide a matrix by a scalar.
|
The documentation for this class was generated from the following file:
- csgeom/matrix2.h
Generated for Crystal Space by doxygen 1.3.9.1