QuaternionLinearInterpolant
class QuaternionLinearInterpolant(parameterPositions: DoubleArray, sampleValues: DoubleArray, sampleSize: Int, resultBuffer: DoubleArray = DoubleArray(sampleSize)) : Interpolant
Spherical linear unit quaternion interpolant.
Parameters
parameterPositions
The parameter positions holding the interpolation factors.
sampleValues
The sample values.
sampleSize
The number of values in one sample (the stride).
resultBuffer
The result buffer; defaults to a fresh DoubleArray(sampleSize).
Constructors
Link copied to clipboard
constructor(parameterPositions: DoubleArray, sampleValues: DoubleArray, sampleSize: Int, resultBuffer: DoubleArray = DoubleArray(sampleSize))
Properties
Link copied to clipboard
The default settings object. Overridden by CubicInterpolant.
Link copied to clipboard
The parameter positions.
Link copied to clipboard
The result buffer. Reused across calls; overwritten by every evaluate.
Link copied to clipboard
The sample values.
Link copied to clipboard
The interpolation settings. null until assigned; getSettings_ then falls back to DefaultSettings_.
Functions
Link copied to clipboard
Copies a sample value to the result buffer.
Link copied to clipboard
Evaluates the interpolant at position t.
Link copied to clipboard
Returns the interpolation settings.