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