atan2 function

This 2019.0 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Syntax

  • float atan2(float y, x)

Returns

The principal arc tangent of y/x, in the interval [-180, 180] degrees.

Description

The atan2 function calculates the principal value of the arc tangent of y/x, using the signs of both arguments to determine the quadrant of the return value.

Related


In this topic