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: http://www.oodesign.com/template-method-pattern.html
Constructs a new interpolant.
parameterPositions
The parameter positions hold the interpolation factors.
sampleValues
The sample values.
sampleSize
The sample size
resultBuffer
The result buffer.
The default settings object.
The parameter positions.
The result buffer.
The sample values.
The interpolation settings.
Default is null.
The value size.
Copies a sample value to the result buffer.
index
An index into the sample value buffer.
Returns: The result buffer.
Evaluate the interpolant at position t.
t
The interpolation factor.
Returns: The result buffer.
Returns the interpolation settings.
Returns: The interpolation settings.
Copies a sample value to the result buffer.
i1
An index into the sample value buffer.
t0
The previous interpolation factor.
t
The current interpolation factor.
t1
The next interpolation factor.
Returns: The result buffer.
Optional method that is executed when the interval has changed.
i1
An index into the sample value buffer.
t0
The previous interpolation factor.
t
The current interpolation factor.