spherical_to_cartesian

spherical_to_cartesian#

spherical_to_cartesian(
r: ArrayLike[float],
phi: ArrayLike[float],
theta: ArrayLike[float],
) tuple[NumpyArray[float], NumpyArray[float], NumpyArray[float]][source]#

Convert Spherical coordinates to 3D Cartesian coordinates.

Parameters:
rArrayLike[float]

Radial distance.

phiArrayLike[float]

Angle (radians) with respect to the polar axis. Also known as polar angle.

thetaArrayLike[float]

Angle (radians) of rotation from the initial meridian plane. Also known as azimuthal angle.

Returns:
outputnumpy.ndarray, numpy.ndarray, numpy.ndarray

Cartesian coordinates.