There's an easier way, now that I think about it.
Suppose your starting point is A and your destination is B.
Calculate distance from A to (0, 0) and B to (0, 0). You have two lengths of a triangle.
I told you how to calculate the distance from A to B so you have your third length which completes your triangle.
Use some basic trig to find the angle.
|