Abstract
Create a new instance.
Note: This is not designed to be called directly.
array of positions
array of samples
number of samples
Optional
resultBuffer: any[]buffer to store the interpolation results.
Optional
resultEvaluate the interpolant at position t.
An array
time
Abstract
interpolate_Optional
t0: numberOptional
t: numberOptional
t1: numberAbstract
intervalOptional
t0: numberOptional
t1: number
Abstract base class of interpolants over parametric samples.
The parameter domain is one dimensional, typically the time or a path along a curve defined by the data.
The sample values can have any dimensionality and derived classes may apply special interpretations to the data.
This class provides the interval seek in a Template Method, deferring the actual interpolation to derived classes.
Time complexity is O(1) for linear access crossing at most two points and O(log N) for random access, where N is the number of positions.
References: