threejs-math
Version:
Stand-alone version of three.js math with TypeScript support
30 lines (29 loc) • 911 B
TypeScript
import { Interpolant } from '../Interpolant.js';
/**
* Interpolant that evaluates to the sample value at the position preceding
* the parameter.
*
* @examples
* ```
* const interpolant = new DiscreteInterpolant(
* new Float32Array( 2 ),
* new Float32Array( 2 ),
* 1,
* new Float32Array( 1 )
* );
*
* interpolant.evaluate( 0.5 );
* ```
*/
export declare class DiscreteInterpolant extends Interpolant {
/**
* Create a new instance.
* @param parameterPositions - array of positions
* @param sampleValues - array of samples
* @param sampleSize - number of samples
* @param resultBuffer - buffer to store the interpolation results.
*/
constructor(parameterPositions: any, sampleValues: any, sampleSize: any, resultBuffer: any);
interpolate_(i1: number): number[];
intervalChanged_(i1: number, t0: number, t1: number): void;
}