| Package | org.flintparticles.common.utils |
| Class | public class DisplayObjectUtils |
| Inheritance | DisplayObjectUtils Object |
| Method | Defined 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 | ||
| globalToLocalRotation | () | method |
public static function globalToLocalRotation(obj:DisplayObject, rotation:Number):NumberConverts 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
|
Number — The rotation relative to the display object's coordinate system.
|
| localToGlobalRotation | () | method |
public static function localToGlobalRotation(obj:DisplayObject, rotation:Number):NumberConverts 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
|
Number — The rotation relative to the stage's coordinate system.
|