Fork me on GitHub
View source

package haxepunk.tweens.misc

class AngleTween


extends Tween

Tweens from one angle to another.

Constructor

View source

new (type : TweenType) : Void

Constructor.


Parameters:
complete   

Optional completion callback.

type   

Tween type.

Variables

angle : Float

The current value.

Functions

View source

tween (fromAngle : Float, toAngle : Float, duration : Float, ease : EaseFunction) : Void

Tweens the value from one angle to another. Rotates on the shortest angle.


Parameters:
fromAngle   

Start angle.

toAngle   

End angle.

duration   

Duration of the tween.

ease   

Optional easer function.