interpolateInternalSingleProc function
Implementation
double interpolateInternalSingleProc(
double value, double inS, double inE, double outS, double outE) {
var progress = (value - inS) / (inE - inS);
var resultForNonZeroRange = (outS + (progress * (outE - outS)));
double result;
if (inS == inE) {
if (value <= inS) {
result = outS;
} else {
result = outE;
}
} else {
result = resultForNonZeroRange;
}
return result;
}