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 align="left">Quaternion, QuaternionPtr</H1>
12<H2 align="left">C Specification</H2>
13<BLOCKQUOTE><CODE><code>#include &lt;revolution/mtx/GeoTypes.h&gt;</CODE></CODE></BLOCKQUOTE>
14<BLOCKQUOTE><CODE><CODE>typedef struct<BR> {<BR> <BR> &nbsp;&nbsp;&nbsp; f32 x, y, z, w;<BR> <BR> } Quaternion, *QuaternionPtr;</CODE></CODE></BLOCKQUOTE>
15<H2 align="left">Arguments</H2>
16<P align="left">None.</P>
17<H2 align="left">Return Values</H2>
18<P align="left">None.</P>
19<H2 align="left">Description</H2>
20<P><code><strong>Quaternion</strong></code> is a quaternion type consisting of an (x, y, z) vector component and a (w) scalar component.&nbsp;<code><strong>Quaternion</strong></code> is used by <code>MTX</code> library function such as <A href="../model/MTXQuat.html"><code>MTXQuat</code></a>, &nbsp;which generates a rotation matrix from a quaternion.</P>
21<P><code><strong>QuaternionPtr</strong></code> is a pointer to a <code><strong>Quaternion</strong></code>.</P>
22
23
24<H2 align="left">See Also</H2>
25<P align="left"><A href="Mtx_MtxPtr.html">Mtx, MtxPtr, </A><A href="../model/MTXQuat.html">MTXQuat</A></P>
26<H2>Revision History</H2>
27<P>03/01/2006 Initial version.</P>
28</BODY>
29</HTML>