|
Public Member Functions |
| Matrix4 () |
| Default constructor. Does NOT initialise data for performance.
|
| Matrix4 (const Matrix4 &m) |
| Copy Constructor.
|
| Matrix4 (Vector4 &v1, Vector4 &v2, Vector4 &v3, Vector4 &v4) |
| Builds a matrix from 4 vectors that serve as columns.
|
| Matrix4 (const float m00, const float m10, const float m20, const float m30, const float m01, const float m11, const float m21, const float m31, const float m02, const float m12, const float m22, const float m32, const float m03, const float m13, const float m23, const float m33) |
| Builds a matrix from 9 values. m00, m10, m20 and m30 are the first column, and so on.
|
| Matrix4 (const float values[4][4]) |
| Builds a matrix from an array of values.
|
TestResult | Test () |
| Tests this class and returns the result in a TestResult structure.
|
std::string | ToString () |
| Tests this class and returns the result in a TestResult structure.
|
Vector4 * | operator[] (unsigned int col) |
| Array indexing operator.
|
const Vector4 * | operator[] (unsigned int col) const |
| Array indexing operator.
|
Matrix4 & | operator= (const Matrix4 &m) |
| Assign operator.
|
Matrix4 & | operator+= (const Matrix4 &m) |
| Adds a Matrix4 to this one.
|
Matrix4 & | operator-= (const Matrix4 &m) |
| Subtracts a Matrix4 from this one.
|
Matrix4 & | operator *= (const Matrix4 &m) |
| Multiplies the Matrix4 by another Matrix4.
|
Matrix4 & | operator *= (float f) |
| Multiplies the Matrix3 by a float.
|
Matrix4 & | operator/= (float f) |
| Divides the Matrix4 by a float.
|
Protected Attributes |
float | mat4 [4][4] |
Friends |
bool | operator== (const Matrix4 &m1, const Matrix4 &m2) |
| Are these two Matrix4's equal ?
|
bool | operator!= (const Matrix4 &m1, const Matrix4 &m2) |
| Are these two Matrix4's not equal ?
|
Matrix4 | operator+ (const Matrix4 &m1, const Matrix4 &m2) |
| Add two Matrix4's.
|
Matrix4 | operator- (const Matrix4 &m1, const Matrix4 &m2) |
| Subtracts one Matrix4 from another.
|
Matrix4 | operator * (const Matrix4 &m1, const Matrix4 &m2) |
| Multiplies a Matrix4 by another one.
|
Vector4 | operator * (const Matrix4 &m, const Vector4 &v) |
| Multiplies a Matrix4 by a Vector4.
|
Vector4 | operator * (const Vector4 &v, const Matrix4 &m) |
| Multiplies a Vector4 by a Matrix4.
|
Matrix4 | operator * (const Matrix4 &m, float f) |
| Multiplies a Matrix4 by a float.
|
Matrix4 | operator * (float f, const Matrix4 &m) |
| Multiplies a Matrix4 by a float.
|
Moteur3D::Matrix4::Matrix4 |
( |
const float |
m00, |
|
|
const float |
m10, |
|
|
const float |
m20, |
|
|
const float |
m30, |
|
|
const float |
m01, |
|
|
const float |
m11, |
|
|
const float |
m21, |
|
|
const float |
m31, |
|
|
const float |
m02, |
|
|
const float |
m12, |
|
|
const float |
m22, |
|
|
const float |
m32, |
|
|
const float |
m03, |
|
|
const float |
m13, |
|
|
const float |
m23, |
|
|
const float |
m33 |
|
) |
|
|