This is my first question here, hopefully it fits.
Imagine all people on the northern hemisphere are looking North to the Pole. Now I want them to look towards a new location given by latitude, longitude. How do I calculate the rotation needed (3D space) for each individual?
So far I've figured everybody standing on a line going through both points need to rotate by PI if standing between and everybody outside by zero.
And for everybody the two points are at a 90° angle the rotation is PI/2 or -PI/2 on the other side.
I believe min max rotation is -PI and PI. How do I build a formula solving this problem for all points?