1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>FX_Atan2Idx</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">FX_Atan2Idx <img src="../image/NTR.gif"align="middle"><img src="../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19<PRE><CODE>#include &lt;nitro/fx/fx_trig.h&gt;
20
21u16 FX_Atan2Idx( fx32 y, fx32 x );</code></PRE>
22  </dd>
23</dl><h2>Arguments</h2>
24
25<table border="1" width="100%">
26
27    <tr>
28      <TD width="109"><em><strong><font face="Courier New">y</font></strong></em></TD>
29      <TD width="593"><code><A href="fx32.html">fx32</A></code>-format fixed-point decimal.</TD>
30    </tr>
31    <TR>
32      <TD><em><strong><font face="Courier New">x</font></strong></em></TD>
33      <TD><code><A href="fx32.html">fx32</A></code>-format fixed-point decimal.</TD>
34    </TR>
35  </table>
36<h2>Return Values</h2>
37<p>Arctangent of y/x</p>
38<H2>Description</H2>
39<P>This finds the arctangent of <strong><em><CODE>y</CODE></em></strong>/<strong><em><CODE>x</CODE></em></strong>. The results are returned in a <code>u16</code> format. The units of the result are equal to 1/65536 of a circle (2 &pi; radians). (Example: A right angle would be 16384.) Internally, a table is referenced.</P>
40<P>The divider is used internally. Refer to <A href="../cp/div/about_div.html#use_in_intr">Divider Usage Notes</A> when using this function inside an interrupt.</P>
41
42<h2>See Also</h2>
43<P><CODE><A href="FX_Atan.html">FX_Atan</A>, <A href="FX_Atan2.html">FX_Atan2</A>, <A href="FX_AtanIdx.html">FX_AtanIdx</A>, <A href="FX_AsinIdx.html">FX_AsinIdx</A>, <A href="FX_AcosIdx.html">FX_AcosIdx</A></CODE></P>
44<H2>Revision History</H2>
45<P>2004/06/16 Initial version.</P>
46<hr><p>CONFIDENTIAL</p></body>
47</html>
48