NormalizeAngle.java 343B

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