← All docs

atan2()

Returns the arc tangent of two variables.

atan2()

function atan2(float $y, float $x): float

Returns the arc tangent of two variables.

Parameters:

  • $y (float)
  • $x (float)

Returns: float

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how atan2 is implemented in the compiler, see the internals page.