Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LinearInterpolant

Linear interpolant See the ngx3js docs page for details.

Code Example

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

Hierarchy

Index

Constructors

constructor

  • new LinearInterpolant(parameterPositions: any, samplesValues: any, sampleSize: number, resultBuffer?: any): I3JS.LinearInterpolant
  • new LinearInterpolant(parameterPositions: any, sampleValues: any, sampleSize: number, resultBuffer?: any): I3JS.LinearInterpolant

Properties

parameterPositions

parameterPositions: any

Array of positions

resultBuffer

resultBuffer: any

Buffer to store the interpolation results.

sampleValues

sampleValues: any

Array of samples

valueSize

valueSize: number

Number of samples

Methods

evaluate

  • evaluate(t: number): number[]

interpolate_

  • interpolate_(i1: number, t0: number, t: number, t1: number): any

Generated using TypeDoc