Utilities for performing math with bezier curves.

Static methods

staticbezier2(p:Float, a:FlxPoint, b:FlxPoint):FlxPoint

A bezier curve with two points. This is really just linear interpolation but whatever.

staticbezier3(p:Float, a:FlxPoint, b:FlxPoint, c:FlxPoint):FlxPoint

A bezier curve with three points.

Parameters:

p

The percentage of the way through the curve.

a

The start point.

b

The control point.

c

The end point.

staticbezier4(p:Float, a:FlxPoint, b:FlxPoint, c:FlxPoint, d:FlxPoint):FlxPoint

A bezier curve with four points.

Parameters:

p

The percentage of the way through the curve.

a

The start point.

b

The first control point.

c

The second control point.

d

The end point.

staticbezier5(p:Float, a:FlxPoint, b:FlxPoint, c:FlxPoint, d:FlxPoint, e:FlxPoint):FlxPoint

A bezier curve with four points.

Parameters:

p

The percentage of the way through the curve.

a

The start point.

b

The first control point.

c

The second control point.

c

The third control point.

d

The end point.