kochanek-bartels-tangents ( points m0 mn c1 c2 -- tangents )


Vocabulary
math.splines.private

Inputs
pointsan object
m0an object
mnan object
c1an object
c2an object


Outputs
tangentsan object


Definition


:: kochanek-bartels-tangents
( points m0 mn c1 c2 -- tangents )
points 3 clump [
first3 :> ( pi-1 pi pi+1 ) pi pi-1 v- c1 v*n pi+1 pi v-
c2 v*n v+
] map m0 prefix mn suffix ;