NormalizeAngle.java 345B

123456789101112131415161718192021
  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. int x= Math.floorMod(integer,360);
  8. return x;
  9. }
  10. public static void main(String[] args){
  11. }
  12. }