Catmull-Rom spline



         


In mathematics, a Catmull-Rom spline is a cardinal spline with a tension of 0.5.

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 = \frac{1}{2}(\mathbf{p}_{i+1}-\mathbf{p}_{i-1}) <math>.

with the first and last tangent given.






  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License