- Math::Atan2(x, y): float
-
Calculates 2-argument arc tangent.
x |
number |
Real number x, with −1 ≤ x ≤ 1 |
y |
number |
Real number y, with −1 ≤ y ≤ 1 |
Return
The angle in radians
println(Math::Atan2(1, 0.5)); //Will print "1.107149"
println(Math::Atan2(0.5, 1)); //Will print "0.463648"