Static
Readonly
BEZIER_Static
Readonly
CATMULL_The amount of pieces to calculate for each control point quadruplet.
Static
Readonly
CIRCULAR_Static
_circularComputes various properties that can be used to approximate the circular arc.
Three distinct points on the arc.
The properties for approximation of the circular arc.
Static
approximateBSplineCreates a piecewise-linear approximation of a clamped uniform B-spline with polynomial order p, by dividing it into a series of bezier control points at its knots, then adaptively repeatedly subdividing those until their approximation error vanishes below a given threshold. Retains previous bezier approximation functionality when p is 0 or too large to create knots. Algorithm unsuitable for large values of p with many knots.
The control points.
The polynomial order.
A list of vectors representing the piecewise-linear approximation.
Static
approximateCreates a piecewise-linear approximation of a bezier curve, by adaptively repeatedly subdividing the control points until their approximation error vanishes below a given threshold.
The control points of the path.
A list of vectors representing the piecewise-linear approximation.
Static
approximateStatic
approximateStatic
approximateStatic
approximate
Helper methods to approximate a path by interpolating a sequence of control points.