<catmull-rom-spline> ( points m0 mn -- polynomials-sequence )


Vocabulary
math.splines

Inputs
pointspoints on the spline
m0initial tangent vector
mnfinal tangent vector


Outputs
polynomials-sequencesequence of sequences of polynomials


Word description
Creates a sequence of cubic hermite curves (each a sequence of polynomials) passing through the given points and generating tangents for C1 continuity.

Definition

: <catmull-rom-spline>
( points m0 mn -- polynomials-sequence )
0 0 0 <kochanek-bartels-curve> ;