Math.atan2

From GiderosMobile
Revision as of 10:05, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns the arc tangent of v1/v2 (in radians), but uses the signs of both parameters to find the quadr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description

Returns the arc tangent of v1/v2 (in radians), but uses the signs of both parameters to find the quadrant of the result. (It also handles correctly the case of v2 being zero.)

(number), = math.atan2(v1v2,)

'v1: (number) first value '
'v2: (number) second value '
Returns (number) result