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