2
$\begingroup$

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?

1 Answers 1

1
  1. Calculate the distance from your initial point to the north pole.
  2. Calculate the distance from the north pole to your new point on the sphere.
  3. Calculate the distance from the new point on the sphere to your initial point.
  4. Use http://en.wikipedia.org/wiki/Spherical_law_of_cosines
  • 0
    @noiv11: what do mean?2012-06-03