Skip to main content

spline_hermite3

spline_hermite3(t, p0, p1, m0, m1) ⇒ number

Perform cubic hermite interpolation

Kind: global function
See: https://en.wikipedia.org/wiki/Cubic_Hermite_spline

ParamTypeDescription
tnumbernormalized interpolation position in interval [0,1]
p0numberfirst value
p1numbersecond value
m0numberfirst tangent (tangent exiting from first value)
m1numbersecond tangent (tangent entering into second value)