logo back up home forward   further reading more topics »

Maths - Spherical Polar Coordinates

Spherical coordinates allow points to be specified using one linear distances and two angles:

This can be used to represent points on the surface of a sphere such as the earth as explained on this page.

Cartesian to Spherical Polar Coordinates

r
latitude
longitude
=
sqrt(x2 + y2+ z2)
arcos(z/r)
atan2(y,x) 

Spherical Polar Coordinates to Cartesian

We can assign an arbitrary x,y,z coordinate system in the local frame of the earth:

geospacial

so from this diagram we can see that:

z = r sin(latitude)

and if we are on the Greenwich meridian then:

x = r cos(latitude)

but if we are not on the Greenwich meridian then this has to be modified depending on the latitude, so,

x = r cos(latitude) cos (longitude)

the y can be calculated from:

r2 = x2 + y2 + z2

therefore y = r *sqrt(1 - sin(latitude) - cos(latitude) cos (longitude))

x
y
z
=
r cos(latitude)
r *sqrt(1 - sin(latitude) - cos(latitude) cos (longitude))
r sin(latitude)

metadata block
see also:

 

Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Geometry for Computer Graphics:...

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

us uk de SuSE Linux 11.2. Operating system with a wide range of applications including Open Office. A good distribution for developers as it contains KDevelop. Java, Mono, etc. Can install itself as a dual-boot system with an existing Windows OS if required. For information about installing it see this page.

 

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

progam

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2010 Martin John Baker - All rights reserved - privacy policy.