cartesian_to_polar
- lstchain.reco.utils.cartesian_to_polar(x, y)
Cartesian to polar transformation As a convention, angle is always included in [-pi/2:pi/2]. When the angle should be in [pi/2:3*pi/2], angle = -1
- Parameters:
- x: float or `numpy.ndarray`
- y: float or `numpy.ndarray`
- Returns:
- norm, angle, sign