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