Re: xyz <--> lat/long

New Message Reply Date view Thread view Subject view Author view

Richard McDonald (richard++at++paradigmsim.com)
Fri, 04 Jun 1999 10:38:18 -0500


> sci wrote:
>
> Hi :
>
> Does anyone know where I can find the info about the math for xyz
> <--> lat/long coordinate conversion?

Given a sphere of radius R>0, the lat angle p, the long angle m,
the conversion to the cartesian system is:

x = Rcos(p)cos(m)
y = Rcos(p)sin(m)
z = Rsin(p)

p = arcsin(z/R)
m = arctan(y/x) x>0

> Thanks,
>
> sci

-- 
__________________________________________________________________

richard++at++paradigmsim.com MultiGen/Paradigm Inc.

"Where's the KA-BOOM! There's supposed to be an Earth-shattering KA-BOOM." - Marvin the Martian, Hare-way to the Stars 1958. __________________________________________________________________


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Jun 04 1999 - 08:34:00 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.