cart2spherical

Import in python using from mcot.core.spherical import cart2spherical

mcot.core.spherical.cart2spherical(x, y, z)[source]

Converts to spherical coordinates

Parameters:
  • x – x-component of the vector
  • y – y-component of the vector
  • z – z-component of the vector
Returns:

tuple with (r, phi, theta)-coordinates