Packageaway3d.core.math
Classpublic class Matrix3DUtils

Public Methods
 MethodDefined by
  
compare(m1:Matrix3D, m2:Matrix3D):Boolean
[static] Returns a boolean value representing whether there is any significant difference between the two given 3d matrices.
Matrix3DUtils
  
getForward(m:Matrix3D, v:Vector3D = null):Vector3D
[static] Returns a normalised Vector3D object representing the forward vector of the given matrix.
Matrix3DUtils
  
getRight(m:Matrix3D, v:Vector3D = null):Vector3D
[static] Returns a normalised Vector3D object representing the right vector of the given matrix.
Matrix3DUtils
  
getUp(m:Matrix3D, v:Vector3D = null):Vector3D
[static] Returns a normalised Vector3D object representing the up vector of the given matrix.
Matrix3DUtils
  
quaternion2matrix(quarternion:Quaternion):Matrix3D
[static] Fills the 3d matrix object with values representing the transformation made by the given quaternion.
Matrix3DUtils
Method detail
compare()method
public static function compare(m1:Matrix3D, m2:Matrix3D):Boolean

Returns a boolean value representing whether there is any significant difference between the two given 3d matrices.

Parameters
m1:Matrix3D
 
m2:Matrix3D

Returns
Boolean
getForward()method 
public static function getForward(m:Matrix3D, v:Vector3D = null):Vector3D

Returns a normalised Vector3D object representing the forward vector of the given matrix.

Parameters
m:Matrix3D — The Matrix3D object to use to get the forward vector
 
v:Vector3D (default = null) — [optional] A vector holder to prevent make new Vector3D instance if already exists. Default is null.

Returns
Vector3D — The forward vector
getRight()method 
public static function getRight(m:Matrix3D, v:Vector3D = null):Vector3D

Returns a normalised Vector3D object representing the right vector of the given matrix.

Parameters
m:Matrix3D — The Matrix3D object to use to get the right vector
 
v:Vector3D (default = null) — [optional] A vector holder to prevent make new Vector3D instance if already exists. Default is null.

Returns
Vector3D — The right vector
getUp()method 
public static function getUp(m:Matrix3D, v:Vector3D = null):Vector3D

Returns a normalised Vector3D object representing the up vector of the given matrix.

Parameters
m:Matrix3D — The Matrix3D object to use to get the up vector
 
v:Vector3D (default = null) — [optional] A vector holder to prevent make new Vector3D instance if already exists. Default is null.

Returns
Vector3D — The up vector
quaternion2matrix()method 
public static function quaternion2matrix(quarternion:Quaternion):Matrix3D

Fills the 3d matrix object with values representing the transformation made by the given quaternion.

Parameters
quarternion:Quaternion — The quarterion object to convert.

Returns
Matrix3D
Wiki link
Click to go to the wiki page for 'away3d.core.math.Matrix3DUtils'

Code examples

Comments