threejs-math
Version:
Stand-alone version of three.js math with TypeScript support
29 lines (28 loc) • 906 B
TypeScript
import { Interpolant } from '../Interpolant.js';
/**
* Spherical linear unit quaternion interpolant.
*
* @examples
* ```
* const interpolant = new QuaternionLinearInterpolant(
* new Float32Array( 2 ),
* new Float32Array( 2 ),
* 1,
* new Float32Array( 1 )
* );
*
* interpolant.evaluate( 0.5 );
* ```
*/
export declare class QuaternionLinearInterpolant 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: any, t0: any, t: any, t1: any): number[];
intervalChanged_(i1: number, t0?: number, t1?: number): void;
}