docs: public static float Scale(FloatRange from, FloatRange to, int x) {
          if (from.length() == 0) return 0;
          return (float) ((to.length()) * (x - from.getMin()) / from.length() + to.getMin());
      }