Expand description
Pure spline math — Catmull-Rom path sampling with twist (banking).
Provides open and closed spline evaluation from control points, producing evenly-spaced samples with position, forward, right, up basis vectors and parametric t values.
Structs§
- Spline
Control Point - A single control point on a Catmull-Rom spline.
- Spline
Sample - A sampled point along a spline with computed basis vectors.
Functions§
- catmull_
rom - Catmull-Rom spline interpolation between four points.
- catmull_
rom_ scalar - Catmull-Rom interpolation for a single scalar value.
- compute_
gap_ ranges - Compute parametric t-ranges where
gap_afteris true. - gap_at
- Return the gap range containing t, or None.
- is_
in_ gap - Check if parametric t falls within any gap range.
- rotate_
around_ axis - Rotate a vector around an axis by an angle in radians (Rodrigues’ formula).
- sample_
closed_ spline - Sample a closed-loop Catmull-Rom spline at approximately
spacingmeters apart. - sample_
open_ spline - Sample an open Catmull-Rom spline at approximately
spacingmeters apart.