[page:Interpolant] →

[name]

Code Example

const interpolant = new THREE.[name]( new Float32Array( 2 ), new Float32Array( 2 ), 1, new Float32Array( 1 ) ); interpolant.evaluate( 0.5 );

Constructor

[name]( parameterPositions, sampleValues, sampleSize, resultBuffer )

parameterPositions -- array of positions
sampleValues -- array of samples
sampleSize -- number of samples
resultBuffer -- buffer to store the interpolation results.

Properties

.parameterPositions : null

.resultBuffer : null

.sampleValues : null

.settings : Object

.valueSize : null

Methods

.evaluate ( [param:Number t] ) : Array

Evaluate the interpolant at position *t*.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]

LinearInterpolant LinearInterpolant LinearInterpolant LinearInterpolant

LinearInterpolant LinearInterpolant LinearInterpolant LinearInterpolant