Dan's solution is correct, and what I use myself, but I just want to point out that degrees, whether lat/long or the same old degrees you remember from sixth grade math class (e.g. the angle in a wedge-shaped object) they are the same thing. The formula to convert radians to degrees, no matter what language you write, is: radians * 180/pi