Spherical coordinates
From Conservapedia
Spherical coordinates are a way to describe the location of a point in three-dimensional space based on "r", the distance from the origin (where x=y=z=0); "θ", the angle between the point and the x-z plane (in the positive x direction); and Ψ, the angle between the point and the z axis (in the positive z direction). Thus, each point is described by: (r,θ,Ψ).
In a sense, cylindrical coordinates are coordinates on a sphere just like polar coordinates are coordinates on a circle.
The equations converting the parameters are as follows:
- r2 = x2 + y2 + z2
- x=r*sin(θ)*cos(Ψ)
- y=r*cos(θ)*sin(Ψ)
- z=r*cos(Ψ)