prime-splines — Curve interpolation: Bezier, Hermite, Catmull-Rom, B-spline, slerp.
All public functions are pure (LOAD + COMPUTE only). No &mut, no side effects,
no hidden state. Same inputs always produce the same output.
Temporal Assembly Model
- LOAD — read function parameters
- COMPUTE — pure math
STORE and JUMP do not exist here.
Included
bezier_quadratic/bezier_quadratic_3d— quadratic Bezier (3 control points)bezier_cubic/bezier_cubic_3d— cubic Bezier (4 control points)hermite/hermite_3d— cubic Hermite (position + tangent at endpoints)catmull_rom/catmull_rom_3d— Catmull-Rom (smooth through control points)b_spline_cubic/b_spline_cubic_3d— uniform cubic B-spline segmentslerp— spherical linear interpolation for unit quaternionsbezier_cubic_arc_length/bezier_cubic_arc_length_3d— approximate arc lengthbezier_cubic_t_at_length/bezier_cubic_t_at_length_3d— inverse arc-length parameterisation