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']) – Cartesian coordinates.- Return type:
- Returns:
Corresponding spherical coordinates.
See also