Spherical linear unit quaternion interpolant.
const interpolant = new QuaternionLinearInterpolant(new Float32Array( 2 ),new Float32Array( 2 ),1,new Float32Array( 1 ));interpolant.evaluate( 0.5 );
Create a new instance.
array of positions
array of samples
number of samples
buffer to store the interpolation results.
Optional
Evaluate the interpolant at position t.
An array
time
Spherical linear unit quaternion interpolant.
Examples