Note:By X and Y coordinates. Syntax: Math.atan2(param1, param2)Parameters: param1 Required; the Y coordinate of the point. param2 Required; the X coordinate of the point.