Packageorg.flintparticles.common.utils
Classpublic class DisplayObjectUtils
InheritanceDisplayObjectUtils Inheritance Object

Utility methods for use with display objects.



Public Methods
 MethodDefined By
  
globalToLocalRotation(obj:DisplayObject, rotation:Number):Number
[static] Converts a global rotation in the coordinate system of the stage to a local rotation in the coordinate system of a display object.
DisplayObjectUtils
  
localToGlobalRotation(obj:DisplayObject, rotation:Number):Number
[static] Converts a rotation in the coordinate system of a display object to a global rotation relative to the stage.
DisplayObjectUtils
Method Detail
globalToLocalRotation()method
public static function globalToLocalRotation(obj:DisplayObject, rotation:Number):Number

Converts a global rotation in the coordinate system of the stage to a local rotation in the coordinate system of a display object.

Parameters

obj:DisplayObject — The display object
 
rotation:Number — The rotation

Returns
Number — The rotation relative to the display object's coordinate system.
localToGlobalRotation()method 
public static function localToGlobalRotation(obj:DisplayObject, rotation:Number):Number

Converts a rotation in the coordinate system of a display object to a global rotation relative to the stage.

Parameters

obj:DisplayObject — The display object
 
rotation:Number — The rotation

Returns
Number — The rotation relative to the stage's coordinate system.