Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 434 Bytes

File metadata and controls

23 lines (18 loc) · 434 Bytes

Math::Atan2

Math::Atan2(x, y): float

Calculates 2-argument arc tangent.

Table 1. Parameters

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"