Skip to main content

Module catmull

Module catmull 

Source
Expand description

Centripetal Catmull–Rom → cubic Bézier SVG d.

Shared by region hulls (closed) and scheme arrows (open). Lives outside doc so crate::arrows can paint shafts without a module cycle.

Functions§

centripetal_catmull_rom_closed_path
Centripetal Catmull–Rom (α = 0.5) closed loop as cubic Bézier SVG d.
centripetal_catmull_rom_open_path
Open centripetal Catmull–Rom (α = 0.5) as cubic Bézier SVG d.
open_catmull_end_frame
Last interpolating vertex and unit last-chord of the open controls.
open_catmull_with_arrow
Shaft + arrow from the same controls: tip is the last vertex, base is that point pulled back along the last chord. The shaft interpolates base.
sample_open_catmull
Dense polyline along the open Catmull–Rom (same cubics as the SVG shaft).