about angles, it never happen.
l208: angle in -pi:pi, because of np.arctan2()
Then, it is between 0:2pi and we check if it's larger than pi. Angle could not be negative.