lumos.conversions.unit_to_spherical

lumos.conversions.unit_to_spherical(x, y, z)[source]

Converts a unit vector \((x, y, z)\) to spherical coordinates \((\phi, \theta)\)

Parameters:
  • x (np.ndarray or float) –

  • y (np.ndarray or float) –

  • z (np.ndarray or float) –

Returns:

\((\phi, \theta)\)

Return type:

tuple