atan2#
- static MathUtils.atan2(y: float, x: float) float#
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.
Examples
>>> from ansys.aedt.core.generic.math_utils import MathUtils >>> MathUtils.atan2(-0.0, -0.0) 0.0