cart2sph

pfsspy.coords.cart2sph(x, y, z)

Convert cartesian coordinates to spherical coordinates.

Returns

  • r

  • theta

  • phi