Bezier curve easing, ported from https://github.com/gre/bezier-easing then extended to work with both cubic and quadratic settings

Static methods

staticget(x1:Float, y1:Float, ?x2:Float, ?y2:Float):BezierEasing

Get or create a BezierEasing instance with the given parameters. Created instances are cached and reused.

Constructor

new(x1:Float, y1:Float, ?x2:Float, ?y2:Float)

Create a new instance with the given arguments. If only x1 and y1 are provided, the curve is treated as quadratic. If all four values x1, y1, x2, y2 are provided, the curve is treated as cubic.

Methods

configure(x1:Float, y1:Float, ?x2:Float, ?y2:Float):Void

Configure the instance with the given arguments. If only x1 and y1 are provided, the curve is treated as quadratic. If all four values x1, y1, x2, y2 are provided, the curve is treated as cubic.