Returns the polar coordinates of a rectangular coordinates.
Syntax
atan2( number1 , number2 )
number1.atan2( number1 )
Parameters
number1
|
the y coordinate.
|
number2
|
the x coordinate.
|
Returns
number
|
the polar coordinates of the given rectangular coordinates.
|
Example
println( atan2( y, x ) )
|