| atan2() The atan2() method is used to return the arctangent of the quotient of its given parameters (numberOne or numberTwo - see syntax). The result returned is a numeric value between the range of -PI and PI, which represents the theta angle of an X, Y point. syntax: Math.atan2(numberOne, numberTwo) EXAMPLE document.write("The arctangent of 62 and 74 is : " + Math.atan2(62, 74) + ".") The example shows a document.write statement being used to display some descriptive text along with the arctangent of the numbers 62 and 74. The output should look like the following: The arctangent of 62 and 74 is : 0.6973907898697076. |