code: public static LinearScaling fromMinMax(double min, double max) {
      double zoom = 1.0 / (max - min);
      return new LinearScaling(zoom, -min * zoom);
    }
docs: Make a linear scaling from a given minimum and maximum. The minimum will be
  mapped to zero, the maximum to one.
  
  @param min Minimum
  @param max Maximum
  @return New linear scaling.