code: static double toRange_0_360(double value) {
  
          while (Double.compare(0.0, value) > 0) {
              value += 360;
          }
          while (Double.compare(value, 360.0) >= 0) {
              value -= 360;
          }
          return value;
  
      }
docs: <p>Adjusts given angle to circular range {@code [0.0, 360.0)}. </p>
  
  @param   value   the angle to be adjusted
  @return  the adjusted angle
  @since   4.37