Parameters

Description

atan returns the angle whose trigonometric arctangent is yx 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 values returned by atan in this case are in the range −ππ. Results are undefined if x is zero.

For the second overload, atan returns the angle whose tangent is y_over_x. Values returned in this case are in the range −π2π2.

docs.gl was written by Jorge Rodríguez. Each entry is under individual copyright displayed at the bottom of that entry. All other content is in the public domain. docs.gl is completely unaffiliated with OpenGL and Khronos. These pages were last compiled on 08 August 2018 at 02:29:12 GMT.