differt.geometry.cartesian_to_spherical#
- cartesian_to_spherical(xyz)[source]#
Transform Cartesian coordinates to spherical coordinates.
See Conventions for details.
- Parameters:
xyz (
Float[ArrayLike, '*batch 3']) – The array of Cartesian coordinates.- Return type:
- Returns:
The array of corresponding spherical coordinates.
See also