logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

atan - return the arc-tangent of the parameters

Declaration

genTypeatan(genTypey,genTypex);genTypeatan(genTypey_over_x);

Description

atan returns either the angle whose trigonometric arctangent is $y \over x$ or y_over_x, depending on
       which overload is invoked. In the first overload, the signs of $y$ and $x$ are used to determine the
       quadrant that the angle lies in. The value returned by atan in this case is in the range $[-\pi,\pi]$.
       The result is undefined if $x = 0$.

       For the second overload, atan returns the angle whose tangent is y_over_x. The value returned in this
       case is in the range $[-{\pi \over 2 },{\pi \over 2}]$.

Name

       atan - return the arc-tangent of the parameters

Parameters

y
           Specify the numerator of the fraction whose arctangent to return.

       x
           Specify the denominator of the fraction whose arctangent to return.

       y_over_x
           Specify the fraction whose arctangent to return.

See Also

sin(), cos(), tan()

Version Support

       ┌──────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │          │        OpenGLShadingLanguageVersion                                            │
       ├──────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name     │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ atan     │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └──────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also