data[0] | data[2] | data[4] |
data[1] | data[3] | data[5] |
0 | 0 | 1 |
Creates a new Matrix with the same data as the current 4x4
Optional
dest: AffineMatrixReturn the affine inverse, optionally store it in a target matrix.
It's recommended you call .reset() the target unless you know what you're doing
Optional
target: AffineMatrixMultiply the current matrix by a vector producing a new vector
Multiply the current matrix by another matrix producing a new matrix
Optional
dest: AffineMatrixResets the current matrix to the identity matrix, mutating it
Current matrix as identity
Applies rotation to the current matrix mutating it
in Radians
Applies scaling to the current matrix mutating it
Applies translation to the current matrix mutating it
Static
identityStatic
rotationCreates a brand new rotation matrix with the specified angle
Static
scaleCreates a brand new scaling matrix with the specified scaling factor
Static
translationCreates a brand new translation matrix at the specified 3d point