ControllerSpline
A Spline implementation that makes use of a Controller. This class allows you to define a spline's behavior based on the output of a controller, providing dynamic and controlled interpolation.
Methods
ControllerSpline(Controller controller)
Constructs a new ControllerSpline with the specified Controller.
setController(Controller controller)
Sets the controller to be used inside the spline.
setStartPoint(PointXY startPoint)
Sets the starting point of the spline.
setEndPoint(PointXY endPoint)
Sets the ending point of the spline.
interpolateY(double x)
Interpolates the Y value of the spline at a given X value by using the internal controller's calculate method.
getStartPoint()
Returns the starting point of the spline.
getEndPoint()
Returns the ending point of the spline.
getController()
Returns the Controller instance used by this spline.