|
Returns the angle (in radians) from the X axis to a point (y,x).
Math.atan2(y, x)
x
A numeric expression representing the cartesian x-coordinate. Required.
y
A numeric expression representing the cartesian y-coordinate. Required.
The return value is between -pi and pi, representing the angle of the supplied (y,x) point.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.