When applying rad2degI get
>>> np.rad2deg(4*np.pi)
720.0
An angle of 720.0 degrees is in many application equivalent to an angle of 360.0 degrees.
What's the best way to convert radians (from dtype=float64) into degrees where the result is the correct value in [0,180]?
Apply modulo division:
result = converted % 360
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With