catmullRomControlPoints

Creates a CubicBezierControlPointCalculator that generates control points for a Catmull-Rom spline, resulting in a smooth curve that passes through all data points.

This implementation uses the position of neighboring points to calculate tangents, ensuring a continuous curve.

Return

A CubicBezierControlPointCalculator for use in CubicBezierLinePlot.

Parameters

tau

A value, typically between 0.0f and 1.0f, that controls the "curviness" of the spline. A value of 0.0f will produce straight lines. A common default is 0.5f. The 'tau' parameter from Catmull-Rom theory is divided by 3 internally to adapt it for cubic Bézier usage.

See also