Skip to main content

Interpolant

CubicInterpolant

Code Example

const interpolant = new THREE.CubicInterpolant( new Float32Array( 2 ), new
Float32Array( 2 ), 1, new Float32Array( 1 ));interpolant.evaluate( 0.5 );

Constructor

CubicInterpolant

function CubicInterpolant( ): 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.

Source

src/math/interpolants/CubicInterpolant.js