LinearInterpolant
Code Example
const interpolant = new THREE.LinearInterpolant( new Float32Array( 2 ), new
Float32Array( 2 ), 1, new Float32Array( 1 ));interpolant.evaluate( 0.5 );
Constructor
LinearInterpolant
function LinearInterpolant( ): void;
parameterPositions -- array of positions
sampleValues -- array of samples
sampleSize -- number of samples
resultBuffer -- buffer to store the interpolation results.
Properties
parameterPositions
parameterPositions: null;
resultBuffer
resultBuffer: null;
sampleValues
sampleValues: null;
settings
settings: Object;
valueSize
valueSize: null;
Methods
evaluate
function evaluate( t: Number ): Array;
Evaluate the interpolant at position t.