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