Transform holds matrix data to make 2d rotate, translate, scale and skew transformations. Angles are in degrees. Representation: | a | c | tx | | b | d | ty | | 0 | 0 | 1 |

Events

@:dox(show)change():Void

Constructor

@:value({ ty : 0, tx : 0, d : 1, c : 0, b : 0, a : 1 })new(a:Float = 1, b:Float = 0, c:Float = 0, d:Float = 1, tx:Float = 0, ty:Float = 0)

Variables

Methods

emitChange():Void

change event

inlinedecompose(?output:DecomposedTransform):DecomposedTransform

inlinesetFromDecomposed(decomposed:DecomposedTransform):Void

@:value({ pivotY : 0, pivotX : 0, skewY : 0, skewX : 0, rotation : 0, scaleY : 1, scaleX : 1, y : 0, x : 0 })inlinesetFromValues(x:Float = 0, y:Float = 0, scaleX:Float = 1, scaleY:Float = 1, rotation:Float = 0, skewX:Float = 0, skewY:Float = 0, pivotX:Float = 0, pivotY:Float = 0):Void

inlinesetFromInterpolated(transform1:Transform, transform2:Transform, ratio:Float):Void

inlineequals(transform:Transform):Bool

inlineidentity():Void

inlineinvert():Void

inlinerotate(angle:Float):Void

Rotate by angle (in radians)

inlinescale(x:Float, y:Float):Void

inlineskew(skewX:Float, skewY:Float):Void

@:value({ scale : 1 })inlinesetRotation(angle:Float, scale:Float = 1):Void

inlinesetTo(a:Float, b:Float, c:Float, d:Float, tx:Float, ty:Float):Void

inlinesetToTransform(transform:Transform):Void