PHP.nl

atan2

atan2

Arc tangent of two variables

float **atan2** float $y float $x

This function calculates the arc tangent of the two variables and . It is similar to calculating the arc tangent of / , except that the signs of both arguments are used to determine the quadrant of the result. x``y``y``x

The function returns the result in radians, which is between -PI and PI (inclusive).

yDividend parameter

xDivisor parameter

The arc tangent of / in radians. y``x

atan