lumos.conversions.spherical_to_unit

lumos.conversions.spherical_to_unit(phi, theta)[source]

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

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

  • theta (np.ndarray or float) –

Returns:

\((x, y, z)\)

Return type:

tuple