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>fx32 Type Constant Macros</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">fx32 Type Constant Macros <img src="../image/NTR.gif"align="middle"><img src="../image/TWL.gif" align="middle"></h1>
15<h2>Description</h2>
16<TABLE border="0" width="100%">
17  <TBODY>
18    <TR>
19      <TD width="160">FX32_ONE</TD>
20      <TD width="424">This is the number 1. It is equal to FX32_CONST (1.0f).</TD>
21    </TR>
22    <TR>
23      <TD width="160">FX32_HALF</TD>
24      <TD width="424">This is the number 1/2. It is equal to FX32_CONST (0.5.0f).</TD>
25    </TR>
26    <TR>
27      <TD width="160">FX32_SQRT2</TD>
28      <TD width="424">The square root of 2.</TD>
29    </TR>
30    <TR>
31      <TD width="160">FX32_SQRT1_2</TD>
32      <TD width="424">The square root of 1/2.</TD>
33    </TR>
34    <TR>
35      <TD width="160">FX32_SQRT3</TD>
36      <TD width="424">The square root of 3.</TD>
37    </TR>
38    <TR>
39      <TD width="160">FX32_SQRT1_3</TD>
40      <TD width="424">The square root of 1/3.</TD>
41    </TR>
42    <TR>
43      <TD width="160">FX32_SIN[0-359]</TD>
44      <TD width="424">The sine of an angle between 0 and 359 degrees.</TD>
45    </TR>
46    <TR>
47      <TD width="160">FX32_COS[0-359]</TD>
48      <TD width="424">The cosine of an angle between 0 and 359 degrees.</TD>
49    </TR>
50  </TBODY>
51</TABLE>
52<H2>Macro Definitions</H2>
53<P>These are defined in <CODE>TwlSDK/include/nitro/fx/fx_const.h</CODE>.
54</P>
55<PRE>#define FX32_ONE                         ((fx32) 0x00001000L)     // 1.000
56#define FX32_HALF                        ((fx32) 0x00000800L)     // 0.500
57#define FX32_SQRT2                       ((fx32) 0x000016a1L)     // 1.414
58#define FX32_SQRT1_2                     ((fx32) 0x00000b50L)     // 0.707
59#define FX32_SQRT3                       ((fx32) 0x00001bb6L)     // 1.732
60#define FX32_SQRT1_3                     ((fx32) 0x0000093dL)     // 0.577</CODE>
61.....</PRE>
62<H2>Revision History</H2>
63<P>2008/07/11 Moved the definitions from the NITRO-SDK to the TWL-SDK.</P>
64<P>2004/02/25 Initial version.</P>
65<hr><p>CONFIDENTIAL</p></body>
66</html>
67