'\" t .\" Title: atan .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets v1.79.2 .\" Date: 10/20/2024 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "ATAN" "3G" "10/20/2024" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" atan \- return the arc\-tangent of the parameters .SH "DECLARATION" .HP \w'genType\ atan('u .BI "genType atan(genType\ " "y" ", genType\ " "x" ");" .HP \w'genType\ atan('u .BI "genType atan(genType\ " "y_over_x" ");" .SH "PARAMETERS" .PP \fIy\fR .RS 4 Specify the numerator of the fraction whose arctangent to return\&. .RE .PP \fIx\fR .RS 4 Specify the denominator of the fraction whose arctangent to return\&. .RE .PP \fIy_over_x\fR .RS 4 Specify the fraction whose arctangent to return\&. .RE .SH "DESCRIPTION" .PP \fBatan\fR returns either the angle whose trigonometric arctangent is $y \eover x$ or \fIy_over_x\fR, 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 \fBatan\fR in this case is in the range $[\-\epi,\epi]$\&. The result is undefined if $x = 0$\&. .PP For the second overload, \fBatan\fR returns the angle whose tangent is \fIy_over_x\fR\&. The value returned in this case is in the range $[\-{\epi \eover 2 },{\epi \eover 2}]$\&. .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Shading Language Version\fR T} T{ \fBFunction Name\fR T}:T{ \fB1\&.10\fR T}:T{ \fB1\&.20\fR T}:T{ \fB1\&.30\fR T}:T{ \fB1\&.40\fR T}:T{ \fB1\&.50\fR T}:T{ \fB3\&.30\fR T}:T{ \fB4\&.00\fR T}:T{ \fB4\&.10\fR T}:T{ \fB4\&.20\fR T}:T{ \fB4\&.30\fR T}:T{ \fB4\&.40\fR T}:T{ \fB4\&.50\fR T} .T& l c c c c c c c c c c c c. T{ atan T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} .TE .sp 1 .SH "SEE ALSO" .PP \fBsin\fR(), \fBcos\fR(), \fBtan\fR() .SH "COPYRIGHT" .PP Copyright \(co 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\&. \m[blue]\fBhttps://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2011-2014 Khronos Group .br