MathUtilities 1.1.15
Common math functions shared across compiled apps at NML-NHP.
Loading...
Searching...
No Matches
Interpolation

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.
 

Detailed Description

Functions related to interpolation.

Function Documentation

◆ cubicSpline2DInterpolant()

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.

Parameters
tThe parameter value for interpolation.
controlTimesPointer to an array of control times.
controlPointsXPointer to an array of x-coordinate control points.
controlPointsYPointer to an array of y-coordinate control points.
segmentPointer to a variable indicating the current segment for interpolation.
numPointsThe number of control points.
xPointer to store the interpolated x-coordinate.
yPointer to store the interpolated y-coordinate.