Surface function of a sphere
\[\begin{split}\Phi(r,\phi,\theta)=
\begin{bmatrix}r\cos(\phi)\sin(\theta)\\r\sin(\phi)\sin(\theta)\\r\cos(\theta)\end{bmatrix}\end{split}\]
with radius \(r\), polar angle \(\phi\) and azimuthal angle
\(\theta\).
- Parameters:
- rfloat
Radius
- thetafloat
Azimuth angle
- phifloat
Polar angle
- Returns:
- poslist
Cartesian coordinates for given spherical coordinates