Compare Revisions

Math.atan2()

Change Revisions

Revision 47940:

Revision 47940 by quantumstate on

Revision 47941:

Revision 47941 by quantumstate on

Title:
atan2
atan2
Slug:
JavaScript/Reference/Global_Objects/Math/atan2
JavaScript/Reference/Global_Objects/Math/atan2
Content:

Revision 47940
Revision 47941
n10    <h3 name="Summary">n10    <h3 id="Summary" name="Summary">
n43    <h3 name="Syntax">n43    <h3 id="Syntax" name="Syntax">
n49    <h3 name="Parameters">n49    <h3 id="Parameters" name="Parameters">
n60    <h3 name="Description">n60    <h3 id="Description" name="Description">
n72    <h3 name="Examples">n72    <h3 id="Examples" name="Examples">
n75    <h4 name="Example:_Using_Math.atan2">n75    <h4 id="Example:_Using_Math.atan2" name="Example:_Using_Math.
 >atan2">
n92      <code>Math.atan2( ±0, -x )</code> returns <code>±PI</code> n92      <code>Math.atan2( ±0, -x )</code> returns <code>±PI</code> 
>for x &lt; 0.<br>>for x &gt; 0.<br>
nn94      <code>Math.atan2(</code> <code>-y, ±0 )</code> returns -<co
 >de>PI/2</code> for y &gt; 0.<br>
94      <code>Math.atan2(</code> <code>±</code><code>y, ±0 )</code>95      <code>Math.atan2(</code> <code>y, ±0 )</code> returns <code
> returns <code>±</code><code>PI/2</code> for y &gt; 0.<br>>>PI/2</code> for y &gt; 0.<br>
n97      <code>Math.atan2( ±Infinity, +x )</code> returns <code>±PI/n98      <code>Math.atan2( ±Infinity, x )</code> returns <code>±PI/2
>2</code> for finite x.<br>></code> for finite x.<br>
t101    <h3 name="See_Also">t102    <h3 id="See_Also" name="See_Also">

Back to History