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: |
- r : float
Radius
- theta : float
Azimuth angle
- phi : float
Polar angle
|
Returns: |
- pos : list
Cartesian coordinates for given spherical coordinates
|