Matrix3DUtils provides additional Matrix3D math functions.

Static variables

@:value(Vector.ofArray([new Vector3D(), new Vector3D(), new Vector3D()]))staticCALCULATION_DECOMPOSE:Vector<Vector3D> = Vector.ofArray([new Vector3D(), new Vector3D(), new Vector3D()])

@:value(new Matrix3D())staticCALCULATION_MATRIX:Matrix3D = new Matrix3D()

@:value(new Vector3D())staticCALCULATION_VECTOR3D:Vector3D = new Vector3D()

@:value(new Vector<Float>(16))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.

@:value({ orientationStyle : EULER_ANGLES })staticdecompose(sourceMatrix:Matrix3D, orientationStyle:Orientation3D = EULER_ANGLES):Vector<Vector3D>

@:value({ result : null })staticdeltaTransformVector(matrix:Matrix3D, vector:Vector3D, ?result:Vector3D):Vector3D

staticdeltaTransformVectors(matrix:Matrix3D, vin:Vector<Float>, vout:Vector<Float>):Void

@:value({ v : null })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

@:value({ v : null })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

@:value({ result : null })staticgetTranslation(transform:Matrix3D, ?result:Vector3D):Vector3D

@:value({ v : null })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

staticlookAt(matrix:Matrix3D, pos:Vector3D, dir:Vector3D, up:Vector3D):Void

@:value({ m : null })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.

@:value({ target : null })staticreflection(plane:Plane3D, ?target:Matrix3D):Matrix3D

@:value({ result : null })statictransformVector(matrix:Matrix3D, vector:Vector3D, ?result:Vector3D):Vector3D