Interpolant

LinearInterpolant

Example

var interpolant = new v3d.LinearInterpolant( new Float32Array(2), new Float32Array(2), 1, new Float32Array(1) ); interpolant.evaluate(0.5);

Constructor

LinearInterpolant(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 : Number) : null

Evaluate the interpolant at position t.

Source

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