Math.atan2

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
BlackNecro (Talk)
(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
Syntaxmath.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.)
Returnsnumber Number




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools