CubicInterpolant constructor

CubicInterpolant(
  1. List<num> parameterPositions,
  2. List<num> sampleValues,
  3. int sampleSize,
  4. List? resultBuffer,
)

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
    };
  }