3D coordinates on a sphere to Latitude and Longitude

I guess it should not be difficult to find the spherical polar coordinates from x,y,z (3d-coordinate system).

  1. r is always constant if it’s on surface.

    enter image description here

  2. (90 – θ) your latitude (negative means it’s on the bottom) as it’s measured from top.

    enter image description here

  3. φ is your longitude. (but not quite sure about longitude system)

    enter image description here

Also check this diagram from wikipedia.

enter image description here

Leave a Comment