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 align="left">MTXQuat</H1>
12<H2 align="left">C Specification</H2>
13<BLOCKQUOTE><CODE><CODE>#include &lt;revolution/mtx.h&gt;</CODE></CODE></BLOCKQUOTE>
14<BLOCKQUOTE><CODE><CODE>void C_MTXQuat ( Mtx <EM>m</EM>, const QuaternionPtr <EM>q</EM> );<BR> void PSMTXQuat ( Mtx <EM>m</EM>, const QuaternionPtr <EM>q</EM> );<BR> <BR> #define MTXQuat&nbsp; C_MTXQuat // for debug build<BR> #define MTXQuat&nbsp; PSMTXQuat // for nondebug build</CODE></CODE></BLOCKQUOTE>
15<H2 align="left">Arguments</H2>
16<DIV align="left">
17<TABLE border="1" cellpadding="3" cellspacing="0.1">
18  <TBODY>
19    <TR>
20<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>m</EM></STRONG></CODE></TD>
21<TD width="520">New rotation matrix.&nbsp; <code><em><strong>m</strong></em></code> may be either an <A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx</CODE></A> or an <A href="../structures/Mtx_MtxPtr.html"><CODE>MtxPtr</CODE></A>.</TD>
22    </TR>
23    <TR>
24<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>q</EM></STRONG></CODE></TD>
25<TD width="520">Pointer to a <A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion</CODE></a> containing (x,y,z,w) values from which to generate <code><em><strong>m</strong></em></code>.</TD>
26    </TR>
27  </TBODY>
28</TABLE>
29</DIV>
30<H2 align="left">Return Values</H2>
31<P align="left">None.</P>
32<H2 align="left">Description</H2>
33<P>Sets a rotation matrix from a quaternion.&nbsp;</P>
34<P>During a debug build, <code>MTXQuat</code> is interpreted as <code>C_MTXQuat</code>, which is a normal C language version. During a nondebug build for a Broadway processor, the paired-singles equivalent of this function, <code>PSMTXQuat</code>, will be automatically substituted. You can also call <code>C_MTXQuat</CODE> or <CODE>PSMTXQuat</code> explicitly.</P>
35
36
37<H2 align="left">See Also</H2>
38<P align="left"><A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx, MtxPtr</CODE></A>, <A href="../structures/Quaternion_QuaternionPtr.html"><CODE>Quaternion, QuaternionPtr</CODE></A>, <A href="MTXRotAxisRad.html"><CODE>MTXRotAxisRad</CODE></A>, <A href="MTXRotAxisDeg.html"><CODE>MTXRotAxisDeg</CODE></A>, <A href="MTXRotRad.html"><CODE>MTXRotRad</CODE></A>, <A href="MTXRotDeg.html"><CODE>MTXRotDeg</CODE></A>, <CODE><A href="MTXRotTrig.html">MTXRotTrig</A></CODE></P>
39<H2>Revision History</H2>
40<P>2006/03/01 Initial version.</P>
41<hr>
42<P>CONFIDENTIAL</p>
43</BODY>
44</HTML>