Class BezierCurve

A class that represents a Bezier Curve Supposedly the most visually appealing curves Needs a lot of complicated math; this class doesn't have much functionality other than what one might need to draw it

class BezierCurve(T, uint dimensions) ;

Constructors

NameDescription
this Creates a bezier curve given a list of control points

Fields

NameTypeDescription
controlPoints Vector!(T,dimensions)[]The points that control the path of the curve; usually don't actually exist on curve

Methods

NameDescription
getPoints Gets numPoints amount of points that are on the bezier curve evenly spaced from the beginning point to the end point (t 0 => 1)