Cardinal spline
|
A cardinal spline is a cubic Hermite spline whose tangents are defined by the points and a tension parameter.
Given n+1 points
- p0, ..., pn,
to be interpolated with n cubic Hermite curve segments, for each curve we have a starting point pi and an ending point pi+1 with starting tangent mi and ending tangent mi+1 with the tangents defined by
- <math> \mathbf{m}_i = (1-c)(\mathbf{p}_{i+1}-\mathbf{p}_{i-1}) <math>
where the first and last tangent m0 and mn are given and c is a constant that modifies the length of the tangent.