Implementation of atan2 that does not suffer from the following issues:
math.atan2(0.0, 0.0) = 0.0
math.atan2(-0.0, 0.0) = -0.0
math.atan2(0.0, -0.0) = 3.141592653589793
math.atan2(-0.0, -0.0) = -3.141592653589793
and returns always 0.0.
- Parameters:
- y
float
Y-axis value for atan2.
- x
float
X-axis value for atan2.
- Returns:
float