JavaScript Reference/Javascript Methods/atan2

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"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>