Matrix3DUtils provides additional Matrix3D math functions.
Static variables
staticCALCULATION_DECOMPOSE:Vector<Vector3D> = Vector.ofArray([new Vector3D(), new Vector3D(), new Vector3D()])
staticRAW_DATA_CONTAINER:Vector<Float> = new Vector<Float>(16)
A reference to a Vector to be used as a temporary raw data container, to prevent object creation.
Static methods
staticcompare(m1:Matrix3D, m2:Matrix3D):Bool
Returns a boolean value representing whether there is any significant difference between the two given 3d matrices.
staticdecompose(sourceMatrix:Matrix3D, orientationStyle:Orientation3D = EULER_ANGLES):Vector<Vector3D>
staticgetForward(m:Matrix3D, ?v:Vector3D):Vector3D
Returns a normalised Vector3D object representing the forward vector of the given matrix.
Parameters:
m | The Matrix3D object to use to get the forward vector |
|---|---|
v | [optional] A vector holder to prevent make new Vector3D instance if already exists. Default is null. |
Returns:
The forward vector
staticgetRight(m:Matrix3D, ?v:Vector3D):Vector3D
Returns a normalised Vector3D object representing the right vector of the given matrix.
Parameters:
m | The Matrix3D object to use to get the right vector |
|---|---|
v | [optional] A vector holder to prevent make new Vector3D instance if already exists. Default is null. |
Returns:
The right vector
staticgetUp(m:Matrix3D, ?v:Vector3D):Vector3D
Returns a normalised Vector3D object representing the up vector of the given matrix.
Parameters:
m | The Matrix3D object to use to get the up vector |
|---|---|
v | [optional] A vector holder to prevent make new Vector3D instance if already exists. Default is null. |
Returns:
The up vector
staticquaternion2matrix(quarternion:Quaternion, ?m:Matrix3D):Matrix3D
Fills the 3d matrix object with values representing the transformation made by the given quaternion.
Parameters:
quarternion | The quarterion object to convert. |
|---|