Returns the angle (in radians) from the X axis to a point ( y , x ).
SyntaxMath.atan2( y , x )
var v1 = Math.atan2(2,3);
document.write(v1);
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
See also Other articles AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4