CubicInterpolant constructor
CubicInterpolant()
parameterPositions
-- array of positions
sampleValues
-- array of samples
sampleSize
-- number of samples
resultBuffer
-- buffer to store the interpolation results.
Implementation
///
/// [sampleValues] -- array of samples
///
/// [sampleSize] -- number of samples
///
/// [resultBuffer] -- buffer to store the interpolation results.
///
CubicInterpolant(
super.parameterPositions,
super.sampleValues,
super.sampleSize,
super.resultBuffer
){
_weightPrev = -0;
_offsetPrev = -0;
_weightNext = -0;
_offsetNext = -0;
defaultSettings = {
"endingStart": ZeroCurvatureEnding,
"endingEnd": ZeroCurvatureEnding
};
}