MathUtilities 1.1.15
Common math functions shared across compiled apps at NML-NHP.
|
Functions related to interpolation. More...
Functions | |
void | cubicSpline2DInterpolant (double t, const double *controlTimes, const double *controlPointsX, const double *controlPointsY, size_t *segment, const size_t numPoints, uint16_t *x, uint16_t *y) |
Perform cubic spline interpolation using de Boor's algorithm. | |
Functions related to interpolation.
void cubicSpline2DInterpolant | ( | double | t, |
const double * | controlTimes, | ||
const double * | controlPointsX, | ||
const double * | controlPointsY, | ||
size_t * | segment, | ||
const size_t | numPoints, | ||
uint16_t * | x, | ||
uint16_t * | y ) |
Perform cubic spline interpolation using de Boor's algorithm.
t | The parameter value for interpolation. |
controlTimes | Pointer to an array of control times. |
controlPointsX | Pointer to an array of x-coordinate control points. |
controlPointsY | Pointer to an array of y-coordinate control points. |
segment | Pointer to a variable indicating the current segment for interpolation. |
numPoints | The number of control points. |
x | Pointer to store the interpolated x-coordinate. |
y | Pointer to store the interpolated y-coordinate. |