atan — return the arc-tangent of the parameters
| ||genType y,|
|genType x |
| ||genType y_over_x |
Specify the numerator of the fraction whose arctangent to return.
Specify the denominator of the fraction whose arctangent to return.
Specify the fraction whose arctangent to return.
atan returns the angle whose trigonometric arctangent is or , depending on which overload is invoked. In the first overload, the signs of and are used to determine the quadrant that the angle lies in. The values returned by
atan in this case are in the range . Results are undefined if is zero.
For the second overload,
atan returns the angle whose tangent is . Values returned in this case are in the range .
|OpenGL Shading Language Version|
Copyright © 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.