The values are meant to wrap around. So if you go off the end beyond 360, it should start counting again from 0. And if you go down from 0, it should count down from 360.
So start at 0, and go down 10. It should loop back up to 360, and continue counting down, to 350.
1
u/kryptogalaxy Mar 20 '19
Math.abs(n) % 360