Local largeangle:Int Local limitedangle:Int For largeangle = -900 To 900 Step 10 limitedangle = (360-(-largeangle Mod 360)) Mod 360 Print limitedangle Next
Is the above the best way to limit a potentially large angle to return only a 'real' angle in the range 0-360 degrees?
I need to reference back to an element in an array based on a collision angle and was a little bit stumped until I thought it through and came up with the above code. I don't know if I went down the wrong path though..?