differt.geometry.spherical_to_cartesian#
- spherical_to_cartesian(rpa)[source]#
Transform spherical coordinates to Cartesian coordinates.
See Conventions for details.
- Parameters:
rpa (
Float[ArrayLike, '*batch 3']|Float[ArrayLike, '*batch 2']) –The array of spherical coordinates.
If the radial component is missing, a radius of 1 is assumed.
- Return type:
- Returns:
The array of corresponding Cartesian coordinates.
See also