Hi.
In the manual in vec_for_angle, theres a place in wich you can see the algorithm for calculation of vertex trough pan and tilt

Do someone knows where I can see the algorithm for vec_to_angle?
This function is clever in a way I cant describe.