atan2#

static GeometryOperators.atan2(y, x)[source]#

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:
yfloat

Y-axis value for atan2.

xfloat

X-axis value for atan2.

Returns:
float