treams.special.sph2car

treams.special.sph2car(r) = <ufunc 'sph2car'>

Convert spherical to cartesian coordinates

The spherical coordinates \((r, \theta, \varphi)\) are converted to \((x, y, z)\) with \(x = r \sin \theta \cos \varphi\), \(y = r \sin \theta \sin \varphi\), and \(z = r \cos \theta\).

Parameters:

r (float, 3-array) – Spherical coordinates in 3-dimensional space

Returns:

float, 3-array