A three-dimensional matrix.
Defaults to the identity matrix when instantiated.
new Matrix3([m])
name | type | arguments | description |
---|---|---|---|
m | Phaser.Math.Matrix3 | <optional> |
Optional Matrix3 to copy values from. |
The matrix values.
Calculate the adjoint, or adjugate, of this Matrix.
This Matrix3.
Make a clone of this Matrix3.
A clone of this Matrix3.
Copy the values of a given Matrix into this Matrix.
name | type | description |
---|---|---|
src | Phaser.Math.Matrix3 |
The Matrix to copy the values from. |
This Matrix3.
Calculate the determinant of this Matrix.
The determinant of this Matrix.
Set the values of this Matrix from the given array.
name | type | description |
---|---|---|
a | array |
The array to copy the values from. |
This Matrix3.
Copy the values of a given Matrix4 into this Matrix3.
name | type | description |
---|---|---|
m | Phaser.Math.Matrix4 |
The Matrix4 to copy the values from. |
This Matrix3.
Set the values of this Matrix from the given Quaternion.
name | type | description |
---|---|---|
q | Phaser.Math.Quaternion |
The Quaternion to set the values of this Matrix from. |
This Matrix3.
Reset this Matrix to an identity (default) matrix.
This Matrix3.
Invert this Matrix.
This Matrix3.
Multiply this Matrix by the given Matrix.
name | type | description |
---|---|---|
src | Phaser.Math.Matrix3 |
The Matrix to multiply this Matrix by. |
This Matrix3.
Set the values of this Matrix3 to be normalized from the given Matrix4.
name | type | description |
---|---|---|
m | Phaser.Math.Matrix4 |
The Matrix4 to normalize the values from. |
This Matrix3.
Apply a rotation transformation to this Matrix.
name | type | description |
---|---|---|
rad | number |
The angle in radians to rotate by. |
This Matrix3.
Apply a scale transformation to this Matrix.
Uses the x
and y
components of the given Vector to scale the Matrix.
name | type | description |
---|---|---|
v | Phaser.Math.Vector2 | Phaser.Math.Vector3 | Phaser.Math.Vector4 |
The Vector to scale this Matrix with. |
This Matrix3.
This method is an alias for Matrix3.copy
.
name | type | description |
---|---|---|
src | Phaser.Math.Matrix3 |
The Matrix to set the values of this Matrix's from. |
This Matrix3.
Translate this Matrix using the given Vector.
name | type | description |
---|---|---|
v | Phaser.Math.Vector2 | Phaser.Math.Vector3 | Phaser.Math.Vector4 |
The Vector to translate this Matrix with. |
This Matrix3.
Transpose this Matrix.
This Matrix3.