docs: public static float mapPoint(float x, float sourceStart, float sourceEnd,
        float targetStart, float targetEnd) {
  
      if (x <= sourceStart) {
        return targetStart;
      }
  
      if (x >= sourceEnd) {
        return targetEnd;
      }
  
      return (x - sourceStart) / (sourceEnd - sourceStart)
          * (targetEnd - targetStart) + targetStart;
    }