| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Math.atan2 Function (JavaScript) | Microsoft Docs |
01/18/2017 |
windows-client-threshold |
|
language-reference |
|
|
|
ccf811c2-82bb-485e-bdc9-3e8840f00dc8 |
12 |
mikejo5000 |
mikejo |
ghogen |
Returns the angle (in radians) from the X axis to a point (y,x).
Math.atan2(y, x)
x
Required. A numeric expression representing the cartesian x-coordinate.
y
Required. A numeric expression representing the cartesian y-coordinate.
The return value is between -pi and pi. It represents the angle of the supplied (y,x) point, in radians.
Applies To: Math Object
[!INCLUDEjsv1]