NormalizeAngle.java 379B

1234567891011121314151617181920212223
  1. public class NormalizeAngle {
  2. public Integer normalizeValueUsingModulo(Integer angle){
  3. angle = (angle % 360);
  4. return angle;
  5. }
  6. public Integer normalizeValueUsingFloorMod(Integer integer){
  7. integer = Math.floorMod(integer, 360);
  8. return integer;
  9. }
  10. public static void main(String[] args){
  11. }
  12. }