Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns the angle (in radians) from the X axis to a point (y,x).
Syntax
Math.atan2(y, x)
Arguments
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, representing the angle of the supplied (y,x) point.
Applies To: Math Object (Windows Scripting - JScript)
Requirements
See Also
atan Method (Windows Scripting - JScript)
tan Method (Windows Scripting - JScript)
Math Object (Windows Scripting - JScript)