, and z for the location of an object:
is the angle in the xy plane to the location.
is measured from the x-axis to the line connecting the origin and the location projected into the xy plane.
is positive using the right-hand rule about the z-axis.