Path: OpticalNavigation/Terrain
% Calculate Catmull–Rom for a chain of points with x 1:4
The curve C will a single y point.
--------------------------------------------------------------------------
Form:
C = CatmullRomSpline( P )
--------------------------------------------------------------------------
------
Inputs
------
P (1,4) Control y points
-------
Outputs
-------
C (1,1) Y point
--------------------------------------------------------------------------
Reference
https://en.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline
--------------------------------------------------------------------------
Back to the OpticalNavigation Module page