JavaScript Reference/Javascript Methods/atan2
"atan2()" Example
<html>
<body>
<button onclick="alert(Math.atan2(1,1));">ATAN2</button>
</body>
</html>
"atan2()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |Math |
+----------------+--------------------------------------------------------------+
"atan2()" Syntax, Parameters and Note
Note:
By X and Y coordinates.
Syntax:
Math.atan2(param1, param2)
Parameters:
param1 Required; the Y coordinate of the point.
param2 Required; the X coordinate of the point.