Constructor
new Interpolant( parameterPositions : TypedArray, sampleValues : TypedArray, sampleSize : number, resultBuffer : TypedArray ) (abstract)
Constructs a new interpolant.
| parameterPositions |
The parameter positions hold the interpolation factors. |
| sampleValues |
The sample values. |
| sampleSize |
The sample size |
| resultBuffer |
The result buffer. |
Properties
.DefaultSettings_ : Object
The default settings object.
.parameterPositions : TypedArray
The parameter positions.
.resultBuffer : TypedArray
The result buffer.
.sampleValues : TypedArray
The sample values.
.settings : Object
The interpolation settings.
Default is null.
.valueSize : TypedArray
The value size.
Methods
.copySampleValue_( index : number ) : TypedArray
Copies a sample value to the result buffer.
| index |
An index into the sample value buffer. |
- Returns: The result buffer.
.evaluate( t : number ) : TypedArray
Evaluate the interpolant at position t.
| t |
The interpolation factor. |
- Returns: The result buffer.
.getSettings_() : Object
Returns the interpolation settings.
- Returns: The interpolation settings.
.interpolate_( i1 : number, t0 : number, t : number, t1 : number ) : TypedArray (abstract)
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.
.intervalChanged_( i1 : number, t0 : number, t : number )
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. |