I am trying to find out how to compute the azimuth and elevation angles from a moving air-vehicle simulation to some point on the ground.
I have the vehicle's position vector P, and its orientation quaternion vehQ. I have the target position T, and I have built the difference vector dPT by subtracting P from T.
How do I go about computing the az/el angles to the target? As you can guess, I am not very familiar with 3D math, so some helpful explanation would be wonderful.
Thanks