Optimising Challenge

BlitzMax Forums/BlitzMax Programming/Optimising Challenge

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.

This is the code I use in my game for determining angles between two points :
  Local angle:Float = ATan2(myVehicle.y - p.y, myVehicle.x - p.x)
  If angle < 0 Then
    angle = 360 + angle
  End If

..which always gives me the range, 0 >= angle < 360