Spherical coordinate system

A spherical coordinate system uses three numbers to identify a point in space.: Usually, two angles, and a distance from the origin of the coordinate system. If the point lies on the sphere, only the two angles are needed, because the distance from the origin is known.
The two angular numbers are related to lines of longitude and latitude on Earth. Earth's longitude is the same as the variable phi, which can be written as either formula_1 or formula_2 The latitude resembles the variable formula_3 (theta), except that some authors define formula_4 to be at the north pole instead of at the equator.