interpolateInternalSingle function

double interpolateInternalSingle(
  1. double value,
  2. List<double> inputRange,
  3. List<double> outputRange,
  4. int offset,
)

Implementation

double interpolateInternalSingle(double value, List<double> inputRange,
    List<double> outputRange, int offset) {
  double inS = inputRange[offset];
  double inE = inputRange[offset + 1];
  double outS = outputRange[offset];
  double outE = outputRange[offset + 1];
  return interpolateInternalSingleProc(value, inS, inE, outS, outE);
}