Atan2 returns the arc tangent of y/x, using the signs of the two to determine the quadrant of the return value. Special cases are (in order): Atan2(y, NaN) = NaN Atan2(NaN, x) = NaN Atan2(+0, x>=0) = +0 Atan2(-0, x>=0) = -0 Atan2(+0, x<=-0) = +Pi Atan2(-0, x<=-0) = -Pi Atan2(y>0, 0) = +Pi/2
(y, x float32)
| 53 | // Atan2(+Inf, x) = +Pi/2 |
| 54 | // Atan2(-Inf, x) = -Pi/2 |
| 55 | func Atan2(y, x float32) float32 { |
| 56 | return engomath.Atan2(y, x) |
| 57 | } |
| 58 | |
| 59 | // Atanh returns the inverse hyperbolic tangent of x. |
| 60 | // |
no outgoing calls
no test coverage detected