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 name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>Quaternion, QuaternionPtr</TITLE>
9</HEAD>
10<BODY>
11<H1>Quaternion, QuaternionPtr</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx/GeoTypes.h&gt;
16
17typedef struct
18{
19
20    f32 x, y, z, w;
21
22} Quaternion, *QuaternionPtr;
23</pre></dd></dl>
24
25<H2>Arguments</H2>
26<P>None.</P>
27
28<H2>Return Values</H2>
29<P>None.</P>
30
31<H2>Description</H2>
32<P><STRONG>Quaternion</STRONG> is a quaternion type consisting of an (x, y, z) vector component and a (w) scalar component. <STRONG>Quaternion</STRONG> is only used by one of the <code>MTX</code> library functions: <A href="../model/MTXQuat.html"><CODE>MTXQuat</CODE></A>the function that generates a rotation matrix from a quaternion.</P>
33<P><code><strong>QuaternionPtr</strong></code> is a pointer to a <code><strong>Quaternion</strong></code>.</P>
34
35<H2>See Also</H2>
36<P class="reference">
37<A href="Mtx_MtxPtr.html">Mtx, MtxPtr</A>,
38<A href="../model/MTXQuat.html">MTXQuat</A>
39</P>
40
41<H2>Revision History</H2>
42<P>
432006/03/01 Initial version.<br>
44</P>
45
46<hr><p>CONFIDENTIAL</p></body>
47</HTML>