interpolantFactoryMethodDiscrete method

Interpolant? interpolantFactoryMethodDiscrete(
  1. dynamic result
)

Creates a new DiscreteInterpolant from the times and values. A Float32Array can be passed which will receive the results. Otherwise a new array with the appropriate size will be created automatically.

Implementation

Interpolant? interpolantFactoryMethodDiscrete(result) {
  return DiscreteInterpolant(
    times,
    values,
    getValueSize(),
    result
  );
}