1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>QUATNormalize</TITLE>
9</HEAD>
10<BODY>
11<H1>QUATNormalize</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void C_QUATNormalize ( const Quaternion* src, Quaternion* unit );
18void PSQUATNormalize ( const Quaternion* src, Quaternion* unit );
19
20#define QUATNormalize C_QUATNormalize // for debug build
21#define QUATNormalize PSQUATNormalize // for nondebug build
22</pre></dd></dl>
23
24<H2>Arguments</H2>
25<TABLE class="arguments" border="1" >
26  <TBODY>
27    <TR>
28<TH>src</TH>
29<TD>Pointer to the <a href="../Structures/Quaternion_QuaternionPtr.html"><code>quaternion</code></a> to be normalized.</TD>
30    </TR>
31    <TR>
32<TH>unit</TH>
33<TD>Pointer to the resultant <A href="../structures/Quaternion_QuaternionPtr.html">quaternion</A>.&nbsp;Okay if <SPAN class="argument">src</SPAN> = <SPAN class="argument">unit</SPAN>.</TD>
34    </TR>
35  </TBODY>
36</TABLE>
37
38<H2>Return Values</H2>
39<P>None.</P>
40
41<H2>Description</H2>
42<P>Normalizes a quaternion <code><em><strong>src</strong></em></code> and places the resultant unit quaternion in <strong><em><code>unit</code></em></strong>.</P>
43<P>During a debug build, <code>QUATNormalize</code> is interpreted as <code>C_QUATNormalize</code>, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, <code>PSQUATNormalize</code>, will be automatically substituted. You can also call each of <code>C_QUATNormalize/PSQUATNormalize</code> explicitly.</P>
44
45<H2>See Also</H2>
46<P class="reference">
47<A href="../structures/Quaternion_QuaternionPtr.html">Quaternion, QuaternionPtr</A>
48</P>
49
50<H2>Revision History</H2>
51<P>
522006/03/01 Initial version.<br>
53</P>
54
55<hr><p>CONFIDENTIAL</p></body>
56</HTML>