# Convert 2D Polar coords to 3D spherical Coords

This topic is 3073 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I would like to know how to convert a 2d Polar coord to a 3d sphercial coord using matrix transformations. explain : 1.Earth is a 3d Sphere. 2.but becomes a 2d map when people need to move on it. 3.So, when i create a man given an angle and dist. from that angle 4. that point must be a point on the sphere, i posted this on the graphics form but i will hopefully get better answers here. So if u got confused by the explain, then just read the 1st line and tell me how to do it.

##### Share on other sites
The surface of a sphere is 2D so a position on it can be represented by two coordinates such as longitude and latitude. You have differant projections of the earth. Just using longitude and latitude as (x,y) coordinates is the common map. Directions are accurate, but distances are not. Over a small enough patch far enough from the poles distance can be measured accurately enough.

Correct distance calculation, or really more correct, is the great circle distance. The Earth is, more or less, a spheroid. It's sort of squished from spinning. With a sphere it's simplier, it's just the arc of a circle. You can find website that give all kinds of formulas for geometry such as Wolfram's MathWord site.

Matrix for a transform? From what? The implicit equation for a sphere is x^2+y^2+z^=r^2, not real useful. You generally construct a sphere using the parametric equation for a sphere, i.e. [x,y,z] = f(u,v) = [r*cos(u)*sin(v), r*sin(u)*sin(v), r*cos(v)] which is the formula for converting from 3D polar coordinates to rectalinear coordinates.

1. 1
Rutin
26
2. 2
3. 3
JoeJ
20
4. 4
5. 5

• 10
• 9
• 9
• 46
• 41
• ### Forum Statistics

• Total Topics
631751
• Total Posts
3002072
×