Expand description
Creating hermite splines
Initializing their derivatives using Catmull-Rom
Getting position and derivative values of the splines
Modules§
Macros§
- Simplify defining functions to calculate position(x,y,z) or its derivatives from the coefficients.
Uses a polynomial representation.
Structs§
- A single hermite curve
- A hermite spline, each curve parameterized by CurveParms.
Functions§
- Uses Catmull-Rom to calculate derivatives
- Gets derivatives using Catmull-Rom, then gets derivatives of derivatives, …
- Samples a hermite curve, splitting it into
segmentssegments
The segments are not equal in length - Sets the first three derivatives using recursive cardinal curves.
This is needed to get reasonable starting values for the derivatives.
That way the optimization can proceed smoothly. - Given two points, finds a hermite curve interpolating them.