Interpolant
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 via interpolate_.
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.
Instances are mutable and not thread-safe; confine an instance (and the buffers it wraps) to a single thread, exactly as in three.js. The resultBuffer is reused across calls and its contents are overwritten by each evaluate.
See the Template Method pattern.
Parameters
The parameter positions holding the interpolation factors.
The sample values.
The sample size (a.k.a. the value size / stride).
The result buffer; defaults to a fresh DoubleArray(sampleSize).
Inheritors
Constructors
Properties
The default settings object. Overridden by CubicInterpolant.
The parameter positions.
The result buffer. Reused across calls; overwritten by every evaluate.
The sample values.
The interpolation settings. null until assigned; getSettings_ then falls back to DefaultSettings_.
Functions
Copies a sample value to the result buffer.
Evaluates the interpolant at position t.
Returns the interpolation settings.