The Spherical Polar Coordinate System:

 

 

x = r sinq cosf

y = r sinq sinf

z = r cosq

 

Ranges

r : 0 to infinity

q : 0 to p

f : 0 to 2p