Properties | |
Number | m11 |
Number | m12 |
Number | m13 |
Number | m14 |
Number | m21 |
Number | m22 |
Number | m23 |
Number | m24 |
Number | m31 |
Number | m32 |
Number | m33 |
Number | m34 |
Number | m41 |
Number | m42 |
Number | m43 |
Number | m44 |
Constructors | |
DzMatrix4 (Number m11, Number m12, Number m13, Number m14, Number m21, Number m22, Number m23, Number m24, Number m31, Number m32, Number m33, Number m34, Number m41, Number m42, Number m43, Number m44) | |
DzMatrix4 (DzMatrix4 mat) | |
DzMatrix4 () | |
Methods | |
DzMatrix4 | inverse () |
void | invert () |
DzMatrix4 | multiply (DzMatrix4 mat) |
DzVec3 | multMatrixVec (DzVec3 vec) |
DzVec3 | multVecMatrix (DzVec3 vec) |
void | preScale (DzVec3 scale) |
void | preTranslate (DzVec3 trans) |
void | rotate (DzQuat rotation) |
void | rotateX (Number radians) |
void | rotateY (Number radians) |
void | rotateZ (Number radians) |
void | scale (DzVec3 scale) |
void | setIdentity () |
void | setTrans (DzVec3 trans) |
void | translate (DzVec3 trans) |
DzMatrix4::DzMatrix4 | ( | ) |
Constructor.
DzMatrix4::DzMatrix4 | ( | DzMatrix4 | mat | ) |
Copy Constructor.
DzMatrix4::DzMatrix4 | ( | Number | m11, | |
Number | m12, | |||
Number | m13, | |||
Number | m14, | |||
Number | m21, | |||
Number | m22, | |||
Number | m23, | |||
Number | m24, | |||
Number | m31, | |||
Number | m32, | |||
Number | m33, | |||
Number | m34, | |||
Number | m41, | |||
Number | m42, | |||
Number | m43, | |||
Number | m44 | |||
) |
Constructor from a 4x4 array of elements.
DzMatrix4 DzMatrix4::inverse | ( | ) |
void DzMatrix4::invert | ( | ) |
Sets this matrix to its inverse.
Calculates the multiplication of this matrix by the given matrix.
The | matrix to multiply by |
Multiplies the vector on the right side of this matrix.
vec | The vector to multiply |
Multiplies the vector on the left side of this matrix.
vec | The vector to multiply |
void DzMatrix4::preScale | ( | DzVec3 | scale | ) |
Applies the given scale to the current matrix via pre-multiplication.
void DzMatrix4::preTranslate | ( | DzVec3 | trans | ) |
Translates the current matrix via pre-multiplication.
void DzMatrix4::rotate | ( | DzQuat | rotation | ) |
Rotates the current matrix via post-multiplication.
void DzMatrix4::rotateX | ( | Number | radians | ) |
Rotates the current matrix around the x axis via post-multiplication.
void DzMatrix4::rotateY | ( | Number | radians | ) |
Rotates the current matrix around the y axis via post-multiplication.
void DzMatrix4::rotateZ | ( | Number | radians | ) |
Rotates the current matrix around the z axis via post-multiplication.
void DzMatrix4::scale | ( | DzVec3 | scale | ) |
Applies the given scale to the current matrix via post-multiplication.
void DzMatrix4::setIdentity | ( | ) |
Sets the matrix to the identity matrix.
void DzMatrix4::setTrans | ( | DzVec3 | trans | ) |
Sets the translation portion of the matrix to the given value.
trans | The new value for the translation portion of the matrix |
void DzMatrix4::translate | ( | DzVec3 | trans | ) |
Translates the current matrix via post-multiplication.
The value of the matrix at [1, 1]
The value of the matrix at [1, 2]
The value of the matrix at [1, 3]
The value of the matrix at [1, 4]
The value of the matrix at [2, 1]
The value of the matrix at [2, 2]
The value of the matrix at [2, 3]
The value of the matrix at [2, 4]
The value of the matrix at [3, 1]
The value of the matrix at [3, 2]
The value of the matrix at [3, 3]
The value of the matrix at [3, 4]
The value of the matrix at [4, 1]
The value of the matrix at [4, 2]
The value of the matrix at [4, 3]
The value of the matrix at [4, 4]