Package | com.transmote.flar.utils.geom |
Class | public class FlareGeomUtils |
Inheritance | FlareGeomUtils Object |
Method | Defined By | ||
---|---|---|---|
FlareGeomUtils | |||
calcProjectionMatrix_Alternativa(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D [static]
Convert Flare projection matrix to data that can be used
by Alternativa to determine scene projection,
in order to draw 3D models in correct perspective. | FlareGeomUtils | ||
calcProjectionMatrix_Away(projectionMatrix:Matrix3D, viewportSize:Rectangle, zoom:Number = 10, focus:Number = 100):Matrix3D [static]
Convert Flare projection matrix to data that can be used
by Away3D to determine scene projection,
in order to draw 3D models in correct perspective. | FlareGeomUtils | ||
calcProjectionMatrix_AwayLite(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D [static]
Convert Flare projection matrix to data that can be used
by Away3D Lite to determine scene projection,
in order to draw 3D models in correct perspective. | FlareGeomUtils | ||
calcProjectionMatrix_Flash(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D [static]
Convert Flare projection matrix to data that can be used
by native Flash 3D to determine scene projection,
in order to draw 3D models in correct perspective. | FlareGeomUtils | ||
calcProjectionMatrix_Papervision(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D [static]
Convert Flare projection matrix to data that can be used
by Papervision3D to determine scene projection,
in order to draw 3D models in correct perspective. | FlareGeomUtils | ||
calcProjectionMatrix_Sandy(projectionMatrix:Matrix3D, viewportSize:Rectangle, NEAR_CLIP:Number = 50, FAR_CLIP:Number = 10000):Matrix3D [static]
Convert Flare projection matrix to data that can be used
by Sandy3D to determine scene projection,
in order to draw 3D models in correct perspective. | FlareGeomUtils | ||
convertFlareData2D(data2D:ByteArray, mirroredSourceWidth:Number = 0):Vector.<Point> [static]
Convert Flare corner data (from FlareTracker.getTrackerResults2D)
into a Vector of four Points. | FlareGeomUtils | ||
convertFlareMatrixToFlashMatrix(matDataIn:ByteArray, bMirror:Boolean = true):Matrix3D [static]
Convert Flare matrix data (ByteArray) to a Flash Matrix3D. | FlareGeomUtils |
FlareGeomUtils | () | Constructor |
public function FlareGeomUtils()
calcProjectionMatrix_Alternativa | () | method |
public static function calcProjectionMatrix_Alternativa(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D
Convert Flare projection matrix to data that can be used by Alternativa to determine scene projection, in order to draw 3D models in correct perspective.
Parameters
projectionMatrix:Matrix3D | |
viewportSize:Rectangle |
Matrix3D |
Error Alternativa3D — + flarenot yet supported as of FLARManager v1.0.
|
calcProjectionMatrix_Away | () | method |
public static function calcProjectionMatrix_Away(projectionMatrix:Matrix3D, viewportSize:Rectangle, zoom:Number = 10, focus:Number = 100):Matrix3D
Convert Flare projection matrix to data that can be used by Away3D to determine scene projection, in order to draw 3D models in correct perspective.
Parameters
projectionMatrix:Matrix3D | |
viewportSize:Rectangle | |
zoom:Number (default = 10 )
| |
focus:Number (default = 100 )
|
Matrix3D |
Error Away3D — + flarenot yet supported as of FLARManager v1.0.
|
calcProjectionMatrix_AwayLite | () | method |
public static function calcProjectionMatrix_AwayLite(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D
Convert Flare projection matrix to data that can be used by Away3D Lite to determine scene projection, in order to draw 3D models in correct perspective.
Parameters
projectionMatrix:Matrix3D | |
viewportSize:Rectangle |
Matrix3D |
Error Away3D — Lite + flarenot yet supported as of FLARManager v1.0.
|
calcProjectionMatrix_Flash | () | method |
public static function calcProjectionMatrix_Flash(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D
Convert Flare projection matrix to data that can be used by native Flash 3D to determine scene projection, in order to draw 3D models in correct perspective.
Parameters
projectionMatrix:Matrix3D | |
viewportSize:Rectangle |
Matrix3D |
calcProjectionMatrix_Papervision | () | method |
public static function calcProjectionMatrix_Papervision(projectionMatrix:Matrix3D, viewportSize:Rectangle):Matrix3D
Convert Flare projection matrix to data that can be used by Papervision3D to determine scene projection, in order to draw 3D models in correct perspective.
Parameters
projectionMatrix:Matrix3D | |
viewportSize:Rectangle |
Matrix3D |
calcProjectionMatrix_Sandy | () | method |
public static function calcProjectionMatrix_Sandy(projectionMatrix:Matrix3D, viewportSize:Rectangle, NEAR_CLIP:Number = 50, FAR_CLIP:Number = 10000):Matrix3D
Convert Flare projection matrix to data that can be used by Sandy3D to determine scene projection, in order to draw 3D models in correct perspective.
Parameters
projectionMatrix:Matrix3D | |
viewportSize:Rectangle | |
NEAR_CLIP:Number (default = 50 )
| |
FAR_CLIP:Number (default = 10000 )
|
Matrix3D |
Error Sandy3D — + flarenot yet supported as of FLARManager v1.0.
|
convertFlareData2D | () | method |
public static function convertFlareData2D(data2D:ByteArray, mirroredSourceWidth:Number = 0):Vector.<Point>
Convert Flare corner data (from FlareTracker.getTrackerResults2D) into a Vector of four Points.
Parameters
data2D:ByteArray — Flare corner data, with markerType and targetID removed
| |
mirroredSourceWidth:Number (default = 0 ) — Specify source width to perform mirroring.
|
Vector.<Point> |
convertFlareMatrixToFlashMatrix | () | method |
public static function convertFlareMatrixToFlashMatrix(matDataIn:ByteArray, bMirror:Boolean = true):Matrix3D
Convert Flare matrix data (ByteArray) to a Flash Matrix3D.
Parameters
matDataIn:ByteArray — Flare matrix data to convert.
| |
bMirror:Boolean (default = true ) — If true , this method will flip the resultant matrix horizontally (along the x-axis).
|
Matrix3D — Matrix3D generated from the Flare matrix data.
|