Normalize static method

double Normalize(
  1. num value,
  2. num start,
  3. num end
)

Normalizes value from the range [start, end] to [0.0, 1.0].

Implementation

static double Normalize(num value, num start, num end) {
  return (value - start)/(end - start);
}