JavaScript Reference/Javascript Methods/atan2 — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"atan2()" Example
<source lang="javascript">
<html> <body> <button onclick="alert(Math.atan2(1,1));">ATAN2</button> </body> </html>
</source>
"atan2()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |Math | +----------------+--------------------------------------------------------------+
</source>
"atan2()" Syntax, Parameters and Note
<source lang="javascript">
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. </source>