MCPcopy Create free account
hub / github.com/EngoEngine/engo / Atan2

Function Atan2

math/all.go:55–57  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

53// Atan2(+Inf, x) = +Pi/2
54// Atan2(-Inf, x) = -Pi/2
55func Atan2(y, x float32) float32 {
56 return engomath.Atan2(y, x)
57}
58
59// Atanh returns the inverse hyperbolic tangent of x.
60//

Callers 2

RotationComponentRadMethod · 0.92
AngleMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected