File: module-Interpolations.md | Updated: 11/15/2025
Interpolations contains spline and Bézier functions internally used by concrete curve classes.
Bezier Curves formulas obtained from: https://en.wikipedia.org/wiki/B%C3%A9zier_curve
Computes a point on a Catmull-Rom spline.
t | The interpolation factor.
---|---
p0 | The first control point.
p1 | The second control point.
p2 | The third control point.
p3 | The fourth control point.
Returns: The calculated point on a Catmull-Rom spline.
Computes a point on a Cubic Bezier curve.
t | The interpolation factor.
---|---
p0 | The first control point.
p1 | The second control point.
p2 | The third control point.
p3 | The fourth control point.
Returns: The calculated point on a Cubic Bezier curve.
Computes a point on a Quadratic Bezier curve.
t | The interpolation factor.
---|---
p0 | The first control point.
p1 | The second control point.
p2 | The third control point.
Returns: The calculated point on a Quadratic Bezier curve.