Math.atan2
From Data Realms Wiki
(Difference between revisions)
BlackNecro (Talk)
(New page: {{LuaFunction |function_name = math.atan2 |arguments = number y, number x |returns = number Number |description = Returns the arc tangen...)
(New page: {{LuaFunction |function_name = math.atan2 |arguments = number y, number x |returns = number Number |description = Returns the arc tangen...)
Latest revision as of 00:32, 15 February 2009
Function | |
---|---|
Syntax | math.atan2( number y, number x ) |
Description: | |
Returns the arc tangent of y/x (in radians), but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of x being zero.) | |
Returns | number Number |
Example | |
---|---|
Description | Placeholder! |
Code |
|
Output | Placeholder! |