BezierCurve

public void BezierCurve()

This creates an empty BezierCurve. IMPORTANT NOTE: Only use this for the constructors of classes extending this. If you try to run the robot on a Path containing an empty BezierCurve, then it will explode.


public void BezierCurve(ArrayList<Point> controlPoints)

This creates a new BezierCurve with an ArrayList of control points and generates the curve. IMPORTANT NOTE: The order of the control points is important. That's the order the code will process them in, with the 0 index being the start point and the final index being the end point

Parameters

controlPoints

This is the ArrayList of control points that define the BezierCurve.


public void BezierCurve(Array<Point> controlPoints)

This creates a new Bezier curve with some specified control points and generates the curve. IMPORTANT NOTE: The order of the control points is important. That's the order the code will process them in, with the 0 index being the start point and the final index being the end point.

Parameters

controlPoints

This is the specified control points that define the BezierCurve.


public void BezierCurve(Array<Pose> controlPoses)

This creates a new Bezier curve with some specified control points and generates the curve. IMPORTANT NOTE: The order of the control points is important. That's the order the code will process them in, with the 0 index being the start point and the final index being the end point.

Parameters

controlPoses

This is the specified control poses that define the BezierCurve.