Interpolant

QuaternionLinearInterpolant

Performs quaternion interpoloation for the input arrays.

Code Example

const interpolant = new v3d.QuaternionLinearInterpolant( new Float32Array(2), new Float32Array(2), 1, new Float32Array(1) ); interpolant.evaluate(0.5);

Constructor

QuaternionLinearInterpolant(parameterPositions, sampleValues, sampleSize, resultBuffer)

parameterPositions — array of positions
sampleValues — array of samples
sampleSize — number of samples
resultBuffer — buffer to store the interpolation results.

Properties

.parameterPositions : null

.resultBuffer : null

.sampleValues : null

.settings : Object

.valueSize : null

Methods

.evaluate(t : Float) → Array

Evaluate the interpolant at position t.

Source

For more info on how to obtain the source code of this module see this page.