Could someone please try and solve this math problem for me:
i have two coordinates A and B and i need to calculate heading between those two.
Now by heading i want to get direction i am facing if i go from point A to point B.
Now i have checked heading in application and it goes like this:
X1 = 67749,79
Y1 = -75603,24
Z1 = -2854,271
X2 = 67801,95
Z2 = -2823,197
Heading should be: -7423
This i get from one application (i dont have source code for it so i dont know how heading is calculated but it should be correct).
tried with ATAN2 but it doesnt return same resoult.