Spherical coordinates uses two angles
The relationship between the spherical coordinates and the 3D Cartesian coordinates is the following:
conventions of spherical coordinates
Note that there are two set of convention for spherical coordinates, “physics convention” or “mathematical convention”:
Link to original
physics convention mathematics convention polar angle and azimuthal angle The meanings of and is swapped
This note uses the physics convention.