Hey guys,

I am currently trying to go from an XYZ coordinate to a lon/lat
coordinate.

The formula to go from lon/lat to XYZ is as follows:

LAT = latitude * pi/180
LON = longitude * pi/180
x = -R * cos(LAT) * cos(LON)
y =  R * sin(LAT)
z =  R * cos(LAT) * sin(LON)

Can anyone help me figure out how to reverse that formula so I can get
lon/lat from xyz?

Thanks so much!

`Scott

Reply via email to