<kochanek-bartels-curve> ( points m0 mn tension bias continuity -- polynomials-sequence )


Vocabulary
math.splines

Inputs
pointspoints on the spline
m0start tangent
mnend tangent
tensiona number
biasa number
continuitya number


Outputs
polynomials-sequencesequence of sequence of polynomials


Word description
Creates a sequence of cubic hermite curves (each a sequence of polynomials) passing through the given points, generating tangents with the given tuning parameters.

Definition


:: <kochanek-bartels-curve>
( points m0 mn tension bias continuity -- polynomials-sequence )
tension bias continuity kochanek-bartels-coefficients
:> ( s1 d1 s2 d2 ) points m0 mn
[ s1 s2 kochanek-bartels-tangents ]
[ d1 d2 kochanek-bartels-tangents ] 3bi
:> ( in out ) points in out [ 3array ] 3map
(cubic-hermite-spline) ;