Determines motion along a cubic curve.
Constructor
Methods
setMotion(fromX:Float, fromY:Float, aX:Float, aY:Float, bX:Float, bY:Float, toX:Float, toY:Float, duration:Float):CubicMotion
Starts moving along the curve.
Parameters:
fromX | X start. |
---|---|
fromY | Y start. |
aX | First control x. |
aY | First control y. |
bX | Second control x. |
bY | Second control y. |
toX | X finish. |
toY | Y finish. |
duration | Duration of the movement. |