Return the arc tangent of two variables with the atan2() function:
The atan2() function returns the arc tangent of two variables x and y.
Parameter | Description |
---|---|
y | Required. Specifies the dividend |
x | Required. Specifies the divisor |
Return Value: | The arc tangent of y/x in radians, which is between -Pi and Pi |
---|---|
Return Type: | Float |
PHP Version: | 4+ |