Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Math Object atan2 Method

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

Syntax: JScript Math Object atan2 Method

Math.atan2(y, x)

Arguments: JScript Math Object atan2 Method

x

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

y

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

Remarks: JScript Math Object atan2 Method

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.