Expand description
Parametric curves — Bezier, B-Spline, Catmull-Rom, and Hermite splines.
All curves implement the Curve trait: sample(t) returns a point on
the curve for t ∈ [0, 1]. Arc-length reparametrization is provided
for uniform speed traversal.
Structs§
- ArcTable
- Precomputed arc-length lookup table for uniform speed traversal.
- BSpline
- Cubic uniform B-Spline (C2 continuity). Does NOT pass through control points.
- BezierN
- Arbitrary-degree Bezier via De Casteljau’s algorithm.
- Catmull
Rom - Catmull-Rom spline through a sequence of waypoints.
- Composite
Curve - Multiple curve segments joined end-to-end.
- Cubic
Bezier - Cubic Bezier curve (4 control points).
- Cubic
Bezier2D - 2D cubic Bezier for UI/path use.
- Curve
Walker - Iterator that walks a curve at fixed arc-length steps.
- Frenet
Frame - Frenet-Serret frame at a point on a curve.
- Hermite
Spline - Cubic Hermite spline: interpolates positions and velocities at each knot.
- Line
Segment - Simple line segment from A to B.
- Quadratic
Bezier - Quadratic Bezier curve through 3 control points.
Traits§
- Curve
- Common interface for parametric curves.