Trigonometry saves the day! Please refer to this untidy diagram as I work through the answer:
The angle we want to find is α. We can easily find θ if we know the distance (along the curvature of the Earth) between the two points (or more accurately, the curved-line distance between the two points we get on the surface on the Earth, if we extend a line from each object down to the surface). If the distance is L
, then θ is just L/R
(see Arc Length) where R
is the radius of the Earth.
Notice the values d1, d2, and d3. We can easily find α if we know d2 and d3, because (θ + α) is the inverse tangent of d2/d3. So how do we find these?
First we'll find d1. We know that the hypotenuse of the triangle with d1 and d3 is R + ha, which is just the radius of the Earth plus the elevation of object A. Hence we can find d1:
Similarly, for d3:
Now how do we find d2? We know that the total length of the base of the entire triangle is R + hb; essentially just the radius of the Earth plus the height of object B. We already know d1. So d2 is:
Now we are ready to find α:
So using this expression which is in terms of the heights of both objects and the radius of the Earth, you should be able to find α. There may be an even easier way to find α, but this is what I was able to come up with; it's been a while since I did any trigonometry! I think my math is correct, but let me know if you spot anything wrong.