d3 / d3-shape

Graphical primitives for visualization, such as lines and areas.
https://d3js.org/d3-shape
ISC License
2.48k stars 310 forks source link

Catmull–Rom Splines #18

Closed mbostock closed 9 years ago

mbostock commented 9 years ago

I’d like to add Catmull–Rom spline interpolation, in particular the uniform (α = 0), centripetal (α = 0.5) and chordal (α = 1) variants. Note that interpolate("catmull-rom", 0) would be equivalent to interpolate("cardinal", 0), since both result in a uniform Catmull–Rom spline.

See also On the Parameterization of Catmull–Rom Curves by Yuksel et al.