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>MTXQuat</TITLE>
9</HEAD>
10<BODY>
11<H1>MTXQuat</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void C_MTXQuat ( Mtx m, const QuaternionPtr q );
18void PSMTXQuat ( Mtx m, const QuaternionPtr q );
19
20#define MTXQuat&nbsp; C_MTXQuat // for debug build
21#define MTXQuat&nbsp; PSMTXQuat // for nondebug build
22</pre></dd></dl>
23
24<H2>Arguments</H2>
25<TABLE class="arguments" border="1" >
26  <TBODY>
27    <TR>
28<TH>m</TH>
29<TD>New rotation matrix.&nbsp;<SPAN class="argument">m</SPAN> can be an <A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx</CODE></A> or an <A href="../structures/Mtx_MtxPtr.html"><CODE>MtxPtr</CODE></A>.</TD>
30    </TR>
31    <TR>
32<TH>q</TH>
33<TD>Pointer to a <B>quaternion</B> containing (x,y,z,w) values from which to generate <SPAN class="argument">m</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>Sets a rotation matrix from a quaternion.</P>
43<P>During a debug build, <code>MTXQuat</code> is interpreted as <code>C_MTXQuat</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>PSMTXQuat</code>, will be automatically substituted. You can also call each of <code>C_MTXQuat/PSMTXQuat</code> explicitly.</P>
44
45<H2>See Also</H2>
46<P class="reference">
47<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>,
48<A href="../structures/Quaternion_QuaternionPtr.html">Quaternion, QuaternionPtr</A>,
49<A href="MTXRotAxisRad.html">MTXRotAxisRad</A>,
50<A href="MTXRotAxisDeg.html">MTXRotAxisDeg</A>,
51<A href="MTXRotRad.html">MTXRotRad</A>,
52<A href="MTXRotDeg.html">MTXRotDeg</A>,
53<A href="MTXRotTrig.html">MTXRotTrig</A>
54</P>
55
56<H2>Revision History</H2>
57<P>
582006/03/01 Initial version.<br>
59</P>
60
61<hr><p>CONFIDENTIAL</p></body>
62</HTML>