Math.atan2()

Syntax:

Math.atan2( x, y )

Return:

The angle in radians of the point from the y-axis.

Parameters:

x – a number or a variable containing a number. This parameter is required.

y – a number or a variable containing a number. This parameter is required.

image\Script_Button.jpgExamples