Class LinearInterpolant

Interpolant that evaluates to the sample value at the position preceding the parameter.

Examples

const interpolant = new LinearInterpolant(
new Float32Array( 2 ),
new Float32Array( 2 ),
1,
new Float32Array( 1 )
);

interpolant.evaluate( 0.5 );

Hierarchy

Constructors

Properties

DefaultSettings_: unknown
_cachedIndex: number
parameterPositions: any[]
resultBuffer?: any[]
sampleValues: any[]
settings: unknown
valueSize: number

Methods

  • Evaluate the interpolant at position t.

    Returns

    An array

    Parameters

    • t: number

      time

    Returns any[]