JavaScript Reference/Javascript Methods/atan2 — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
| |
Текущая версия на 08:22, 26 мая 2010
"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.