Algorithms for finding the direction of the sun.