Getting an angle

Blitz3D Forums/Blitz3D Programming/Getting an angle

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

angle% = (360 + (angle% mod 360)) mod 360

can be shortened to

angle% = (360 + angle%) mod 360


This will remove one mod operation and make it faster.