Packagecom.transmote.flar.utils.geom
Classpublic class AwayGeomUtils
InheritanceAwayGeomUtils Inheritance Object



Public Methods
 MethodDefined By
  
AwayGeomUtils
  
convertMatrixToAwayMatrix(mat:Matrix3D):Matrix3D
[static] Convert a native flash Matrix3D to an Away3D-formatted Matrix3D.
AwayGeomUtils
  
dumpMatrix3D(matrix:Matrix3D, sd:int = 4):String
[static] Format Away3D matrix (flash.geom.Matrix3D) as a String.
AwayGeomUtils
Constructor Detail
AwayGeomUtils()Constructor
public function AwayGeomUtils()



Method Detail
convertMatrixToAwayMatrix()method
public static function convertMatrixToAwayMatrix(mat:Matrix3D):Matrix3D

Convert a native flash Matrix3D to an Away3D-formatted Matrix3D. TODO: Not sure why Away3D needs to convert matrices; this is probably a problem somewhere within FLARManager, possibly within FLARCamera_Away3D. For now, using Miguel Moraleda's conversion. Thanks Miguel!

Parameters

mat:Matrix3D — Matrix3D to convert.

Returns
Matrix3D — Away3D-formatted Matrix3D generated from the Matrix3D.
dumpMatrix3D()method 
public static function dumpMatrix3D(matrix:Matrix3D, sd:int = 4):String

Format Away3D matrix (flash.geom.Matrix3D) as a String.

Parameters

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

Returns
String