Difference between revisions of "Math.atan2"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/math|math]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>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.)</translate>
 
<translate>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.)</translate>

Revision as of 09:29, 24 August 2018

Available since: Gideros 2011.6
Class: math

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(v1,v2)

Parameters

v1: (number) first value
v2: (number) second value

Return values

Returns (number) result