bearings

BlitzMax Forums/BlitzMax Beginners Area/bearings

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.

ah yes, excellent, except that. it should calculate the A as zero all the time. because I want to get the bearing of B from A.

So when i move the pointer exact to the left of A it should read 270 degrees. Exactly above = zero, to the right of A = 90.

your code there is seeming to do it in half circles, as in from the right of A all the way to the left side of A = 180. But it should include the 90 degrees from the top of A until it reached the right of A.

so 90 + 180 = 270.