Hello, How can i calculate compass heading from cartesian vectors? Specifically, a planet of radius R is located at (0,0,0), with north pole being at (0,R,0). An airplane is located at POS, and is flying in DIR direction. How can i determine the (true north) compass heading of the plane? DIR might not be parallel to the surface of the planet.