docs: public static double Scale(double fromMin, double fromMax, double toMin, double toMax, double x) {
          if (fromMax - fromMin == 0) return 0;
          return (toMax - toMin) * (x - fromMin) / (fromMax - fromMin) + toMin;
      }