![]() |
Public API Reference |
#include <matrix2.h>
Public Methods | |
csMatrix2 () | |
Construct a matrix, initialized to be the identity. More... | |
csMatrix2 (float m11, float m12, float m21, float m22) | |
Construct a matrix and initialize it. More... | |
csVector2 | Row1 () const |
Get the first row of this matrix as a vector. More... | |
csVector2 | Row2 () const |
Get the second row of this matrix as a vector. More... | |
csVector2 | Col1 () const |
Get the first column of this matrix as a vector. More... | |
csVector2 | Col2 () const |
Get the second column of this matrix as a vector. More... | |
void | Set (float m11, float m12, float m21, float m22) |
Set matrix values. More... | |
csMatrix2 & | operator+= (const csMatrix2 &m) |
Add another matrix to this matrix. More... | |
csMatrix2 & | operator-= (const csMatrix2 &m) |
Subtract another matrix from this matrix. More... | |
csMatrix2 & | operator *= (const csMatrix2 &m) |
Multiply another matrix with this matrix. More... | |
csMatrix2 & | operator *= (float s) |
Multiply this matrix with a scalar. More... | |
csMatrix2 & | operator/= (float s) |
Divide this matrix by a scalar. More... | |
csMatrix2 | operator+ () const |
Unary + operator. More... | |
csMatrix2 | operator- () const |
Unary - operator. More... | |
void | Transpose () |
Transpose this matrix. More... | |
csMatrix2 | GetTranspose () const |
Return the transpose of this matrix. More... | |
csMatrix2 | 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... | |
Friends | |
csMatrix2 | operator+ (const csMatrix2 &m1, const csMatrix2 &m2) |
Add two matricies. More... | |
csMatrix2 | operator- (const csMatrix2 &m1, const csMatrix2 &m2) |
Subtract two matricies. More... | |
csMatrix2 | operator * (const csMatrix2 &m1, const csMatrix2 &m2) |
Multiply two matricies. More... | |
csVector2 | operator * (const csMatrix2 &m, const csVector2 &v) |
Multiply a vector by a matrix (transform it). More... | |
csMatrix2 | operator * (const csMatrix2 &m, float f) |
Multiply a matrix and a scalar. More... | |
csMatrix2 | operator * (float f, const csMatrix2 &m) |
Multiply a matrix and a scalar. More... | |
csMatrix2 | operator/ (const csMatrix2 &m, float f) |
Divide a matrix by a scalar. More... |
Definition at line 34 of file matrix2.h.
|
Construct a matrix, initialized to be the identity.
Referenced by GetInverse, and operator-. |
|
Construct a matrix and initialize it.
|
|
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 98 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 105 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 86 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.
|
|
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.
|