docs: static private double normalize(double value) {
          if (Double.isInfinite(value) || Double.isNaN(value))
              throw new RuntimeException("Attempted to normalize an illegal angle value: " + Double.toString(value));
          double twoPi = 2.0d * Math.PI;
          double result = value % twoPi;  // make in range (-2pi..2pi)
          if (result > Math.PI) {
              result -= twoPi;  // make in the range (-pi..pi]
          }
          if (result <= -Math.PI) {
              result += twoPi;  // make in the range (-pi..pi]
          }
          return result;
      }