Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.41 KB

File metadata and controls

55 lines (46 loc) · 1.41 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Math.atan2 Function (JavaScript) | Microsoft Docs
01/18/2017
windows-client-threshold
devlang-javascript
language-reference
atan2
JavaScript
TypeScript
DHTML
atan2 method
Math object
ccf811c2-82bb-485e-bdc9-3e8840f00dc8
12
mikejo5000
mikejo
ghogen

Math.atan2 Function (JavaScript)

Returns the angle (in radians) from the X axis to a point (y,x).

Syntax

  
Math.atan2(y, x)  

Parameters

x
Required. A numeric expression representing the cartesian x-coordinate.

y
Required. A numeric expression representing the cartesian y-coordinate.

Remarks

The return value is between -pi and pi. It represents the angle of the supplied (y,x) point, in radians.

Applies To: Math Object

Requirements

[!INCLUDEjsv1]

See Also

Math.atan Function
Math.tan Function
Math Object