Classes |
| struct | CS123Matrix< M, N, T > |
| | A CS123Matrix is templated to store M rows and N columns of data of type T. If left off, T will default to a "REAL" data type. Also, if N is not specified, the template will default to a square MxM matrix. More...
|
Typedefs |
|
typedef CS123Matrix< 4, 4 > | Matrix4x4 |
| | Standard 4x4 matrix of REALs.
|
|
typedef CS123Matrix< 3, 3 > | Matrix3x3 |
| | Standard 3x3 matrix of REALs.
|
|
typedef CS123Matrix< 2, 2 > | Matrix2x2 |
| | Standard 2x2 matrix of REALs.
|
Functions |
|
|
|
template<unsigned M, unsigned N, typename T > |
| CS123Vector< N, T > | operator* (const CS123Vector< M, T > &lhs, const CS123Matrix< M, N, T > &rhs) |
| | 1xM row vector * MxN matrix yields a 1xN vector
|
| template<unsigned M, unsigned N, typename T > |
| CS123Matrix< M, N, T > | operator* (const T &scale, const CS123Matrix< M, N, T > &rhs) |
|
template<unsigned M, unsigned N, typename T > |
| std::ostream & | operator<< (std::ostream &os, const CS123Matrix< M, N, T > &m) |
| | Prints a Matrix to an output stream.
|
|
|
| Matrix4x4 | getScaleMat (const Vector4 &v) |
| Matrix4x4 | getTransMat (const Vector4 &v) |
| Matrix4x4 | getRotXMat (const REAL radians) |
| Matrix4x4 | getRotYMat (const REAL radians) |
| Matrix4x4 | getRotZMat (const REAL radians) |
| Matrix4x4 | getRotMat (const Vector4 &p, const Vector4 &v, const REAL a) |
|
|
| Matrix4x4 | getInvScaleMat (const Vector4 &v) |
| Matrix4x4 | getInvTransMat (const Vector4 &v) |
| Matrix4x4 | getInvRotXMat (const REAL radians) |
| Matrix4x4 | getInvRotYMat (const REAL radians) |
| Matrix4x4 | getInvRotZMat (const REAL radians) |
| Matrix4x4 | getInvRotMat (const Vector4 &p, const Vector4 &v, const REAL a) |
Provides basic functionality for a templated, arbitrarily-sized matrix.