prime-splines 1.1.0

Spline math — Bezier, Catmull-Rom, B-spline, slerp
Documentation
  • Coverage
  • 100%
    16 out of 16 items documented15 out of 15 items with examples
  • Size
  • Source code size: 33.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.07 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 55s Average build duration of successful builds.
  • all releases: 45s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • bwyard/prime
    1 0 3
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bwyard

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 segment
  • slerp — spherical linear interpolation for unit quaternions
  • bezier_cubic_arc_length / bezier_cubic_arc_length_3d — approximate arc length
  • bezier_cubic_t_at_length / bezier_cubic_t_at_length_3d — inverse arc-length parameterisation