NormalizeAngle.java 338B

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