NormalizeAngle.java 368B

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