Packagecom.transmote.flar.utils.geom
Classpublic class FLARGeomUtils

collection of utils used for FLAR matrix transformation / conversion.



Public Methods
 MethodDefined by
  
FLARGeomUtils
  
calcFLARMatrixRotations(fm:FLARDoubleMatrix34, bInDegrees:Boolean = true):Vector3D
[static] calculate rotation around X, Y, and Z axes, and return stored in a Vector3D instance.
FLARGeomUtils
  
calcFLARMatrixScales(fm:FLARDoubleMatrix34):Vector3D
[static] calculate scale in X, Y, and Z dimensions, and return stored in a Vector3D instance.
FLARGeomUtils
  
convertFLARMatrixToFlashMatrix(fm:FLARDoubleMatrix34, bMirror:Boolean = true):Matrix3D
[static] convert a FLAR matrix to a Flash Matrix3D.
FLARGeomUtils
  
convertFLARMatrixToFlashMatrix3D(fm:FLARDoubleMatrix34, bMirror:Boolean = true):Matrix3D
[static] convert a FLAR matrix to a Flash Matrix3D.
FLARGeomUtils
  
createFLARIdentityMatrix():FLARDoubleMatrix34
[static] create an identity matrix as a FLARDoubleMatrix34.
FLARGeomUtils
  
createFLARIdentityTransMat():FLARTransMatResult
[static] create an identity matrix as a FLARTransMatResult.
FLARGeomUtils
  
dumpFLARMatrix(fm:FLARDoubleMatrix34, sd:int = 4):String
[static] format a FLAR matrix as a String.
FLARGeomUtils
  
dumpMatrix3D(matrix:Matrix3D, sd:int = 4):String
[static] Format Flash matrix as a String.
FLARGeomUtils
Constructor detail
FLARGeomUtils()constructor
public function FLARGeomUtils()
Method detail
calcFLARMatrixRotations()method
public static function calcFLARMatrixRotations(fm:FLARDoubleMatrix34, bInDegrees:Boolean = true):Vector3D

calculate rotation around X, Y, and Z axes, and return stored in a Vector3D instance. NOTE: does not account for scale, as FLARToolkit matrices always scale equally in all three dimensons.

Parameters
fm:FLARDoubleMatrix34
 
bInDegrees:Boolean (default = true)

Returns
Vector3D
calcFLARMatrixScales()method 
public static function calcFLARMatrixScales(fm:FLARDoubleMatrix34):Vector3D

calculate scale in X, Y, and Z dimensions, and return stored in a Vector3D instance. NOTE: FLARToolkit matrices should always scale equally in all three dimensions, so this method is not likely to be useful. but, it's here now, so here it stays.

Parameters
fm:FLARDoubleMatrix34

Returns
Vector3D
convertFLARMatrixToFlashMatrix()method 
public static function convertFLARMatrixToFlashMatrix(fm:FLARDoubleMatrix34, bMirror:Boolean = true):Matrix3D

convert a FLAR matrix to a Flash Matrix3D. deprecated: this method is equivalent to convertFLARMatrixToFlashMatrix3D, and is present only for legacy support.

Parameters
fm:FLARDoubleMatrix34
 
bMirror:Boolean (default = true)

Returns
Matrix3D
convertFLARMatrixToFlashMatrix3D()method 
public static function convertFLARMatrixToFlashMatrix3D(fm:FLARDoubleMatrix34, bMirror:Boolean = true):Matrix3D

convert a FLAR matrix to a Flash Matrix3D.

Parameters
fm:FLARDoubleMatrix34
 
bMirror:Boolean (default = true)

Returns
Matrix3D
createFLARIdentityMatrix()method 
public static function createFLARIdentityMatrix():FLARDoubleMatrix34

create an identity matrix as a FLARDoubleMatrix34.

Returns
FLARDoubleMatrix34
createFLARIdentityTransMat()method 
public static function createFLARIdentityTransMat():FLARTransMatResult

create an identity matrix as a FLARTransMatResult.

Returns
FLARTransMatResult
dumpFLARMatrix()method 
public static function dumpFLARMatrix(fm:FLARDoubleMatrix34, sd:int = 4):String

format a FLAR matrix as a String.

Parameters
fm:FLARDoubleMatrix34 — FLAR matrix to return as a String.
 
sd:int (default = 4) — number of significant digits to display.

Returns
String
dumpMatrix3D()method 
public static function dumpMatrix3D(matrix:Matrix3D, sd:int = 4):String

Format Flash matrix as a String.

Parameters
matrix:Matrix3D — matrix to return as a String.
 
sd:int (default = 4) — number of significant digits to display.

Returns
String