Navigator 2.0, Internet Explorer 3.0
Math.atan2(x, y)
The X-coordinate of the point.
The Y-coordinate of the point.
The counter-clockwise angle, measured in radians, between the positive X axis, and the point (x, y).
The Math.atan2() function performs half of the conversion between Cartesian coordinates and polar coordinates. It computes and returns the angle theta of an (x, y) point.
This function is named Math.atan2() because it performs a similar computation to Math.atan(). Math.atan2() is passed separate x and y arguments, and Math.atan() is passed the ratio of those two arguments.
file: /Techref/language/java/script/definitive/refp_224.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/12/27 16:03,
18.191.147.146:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/techref/language/java/script/definitive/refp_224.htm"> [Chapter 21] Reference: Math.atan2()</A> |
Did you find what you needed? |