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.
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.