Packageardisia.utils
Classpublic class GeomUtils
InheritanceGeomUtils Inheritance Object

Utility class for some common matrix operations.



Public Methods
 MethodDefined By
  
getRotation(matrix:Matrix):Number
[static] Given the provided transform matrix, returns the rotation in degrees.
GeomUtils
  
getScale(matrix:Matrix):Point
[static] Given the provided transform matrix, returns the scaleX and scaleY as a Point object.
GeomUtils
  
getSkew(matrix:Matrix):Point
[static] Given the provided transform matrix, returns the skewX and skewY as a Point object.
GeomUtils
  
getTranslation(matrix:Matrix):Point
[static] Given the provided transform matrix, returns the translation.
GeomUtils
Method Detail
getRotation()method
public static function getRotation(matrix:Matrix):Number

Given the provided transform matrix, returns the rotation in degrees.

Note, this value is the same as the x skew.

Parameters

matrix:Matrix — the transform Matrix

Returns
Number — a Number of degrees
getScale()method 
public static function getScale(matrix:Matrix):Point

Given the provided transform matrix, returns the scaleX and scaleY as a Point object.

Parameters

matrix:Matrix — the transform Matrix

Returns
Point — Point of x and y scale
getSkew()method 
public static function getSkew(matrix:Matrix):Point

Given the provided transform matrix, returns the skewX and skewY as a Point object.

x skew is the same as rotation.

Parameters

matrix:Matrix — the transform Matrix

Returns
Point — Point of x and y skew
getTranslation()method 
public static function getTranslation(matrix:Matrix):Point

Given the provided transform matrix, returns the translation.

Parameters

matrix:Matrix — the transform Matrix

Returns
Point — Point of x and y translation