Public Member Functions |
| Matrix4 () |
| Construct undefined.
|
| Matrix4 (const Matrix4 &matrix) |
| Copy-construct from another matrix.
|
| Matrix4 (const Matrix3 &matrix) |
| Copy-cnstruct from a 3x3 matrix and set the extra elements to identity.
|
| Matrix4 (float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33) |
| Matrix4 (const float *data) |
| Construct from a float array.
|
Matrix4 & | operator= (const Matrix4 &rhs) |
| Assign from another matrix.
|
Matrix4 & | operator= (const Matrix3 &rhs) |
| Assign from a 3x3 matrix. Set the extra elements to identity.
|
Vector3 | operator* (const Vector3 &rhs) const |
| Multiply a Vector3 which is assumed to represent position.
|
Vector4 | operator* (const Vector4 &rhs) const |
| Multiply a Vector4.
|
Matrix4 | operator+ (const Matrix4 &rhs) const |
| Add a matrix.
|
Matrix4 | operator- (const Matrix4 &rhs) const |
| Subtract a matrix.
|
Matrix4 | operator* (float rhs) const |
| Multiply with a scalar.
|
Matrix4 | operator* (const Matrix4 &rhs) const |
| Multiply a matrix.
|
void | SetTranslation (const Vector3 &translation) |
| Set translation elements.
|
void | SetRotation (const Matrix3 &rotation) |
| Set rotation elements from a 3x3 matrix.
|
void | SetScale (const Vector3 &scale) |
void | SetScale (float scale) |
Matrix3 | ToMatrix3 () const |
| Return the combined rotation and scaling matrix.
|
Matrix3 | RotationMatrix () const |
| Return the rotation matrix with scaling removed.
|
Vector3 | Translation () const |
| Return the translation part.
|
Quaternion | Rotation () const |
| Return the rotation part.
|
Vector3 | Scale () const |
| Return the scaling part.
|
Matrix4 | Transpose () const |
| Return transpose.
|
void | Decompose (Vector3 &translation, Quaternion &rotation, Vector3 &scale) const |
| Return decomposition to translation, rotation and scale.
|
Matrix4 | Inverse () const |
| Return inverse.
|
const float * | Data () const |
| Return float data.
|
4x4 matrix for arbitrary linear transforms including projection.