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>MTXRotTrig</TITLE>
9</HEAD>
10<BODY>
11<H1>MTXRotTrig</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution.mtx.h&gt;
16
17void C_MTXRotTrig ( Mtx m, u8 axis, f32 sinA, f32 cosA );
18void PSMTXRotTrig ( Mtx m, u8 axis, f32 sinA, f32 cosA );
19
20#define MTXRotTrig&nbsp; C_MTXRotTrig // for debug build
21#define MTXRotTrig&nbsp; PSMTXRotTrig // for nondebug build
22</pre></dd></dl>
23
24<H2>Arguments</H2>
25<TABLE class="arguments" border="1" >
26  <TBODY>
27    <TR>
28<TH><em><strong><code>m</code></strong></em>&nbsp;&nbsp;</TH>
29<TD>New rotation matrix. The type of <SPAN class="argument">m</SPAN> may be either <A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx</CODE></A> or <A href="../structures/Mtx_MtxPtr.html"><CODE>MtxPtr</CODE></A>.</TD>
30    </TR>
31    <TR>
32<TH>axis</TH>
33<TD>One of the major axes (X, Y, Z). For convenience, <SPAN class="argument">axis</SPAN> is specified as a character, one of <CODE>'X'<CODE>, <CODE>'x'<CODE>, <CODE>'Y'<CODE>, <CODE>'y'<CODE>, <CODE>'Z'<CODE> and <CODE>'z'<CODE>, as appropriate (must include the single quotation marks).</TD>
34    </TR>
35    <TR>
36<TH>sinA</TH>
37<TD>Sine of rotation angle.</TD>
38    </TR>
39    <TR>
40<TH>cosA</TH>
41<TD>Cosine of rotation angle.</TD>
42    </TR>
43  </TBODY>
44</TABLE>
45
46<H2>Return Values</H2>
47<P>None.</P>
48
49<H2>Description</H2>
50<P>Creates a rotation matrix about one of the major axes (X, Y, Z). &nbsp; Counter-clockwise rotations are positive.&nbsp;Rotation values are specified as sines or cosines.</P>
51<P>During a debug build, the <CODE>MTXRotTrig</CODE> function is parsed as <CODE>C_MTXRotTrig</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>PSMTXRotTrig</CODE>, will be automatically substituted. You can also call <CODE>C_MTXRotTrig</CODE> and <CODE>PSMTXRotTrig</CODE> explicitly.</P>
52
53<H2>See Also</H2>
54<P class="reference">
55<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>,
56<A href="MTXQuat.html">MTXQuat</A>,
57<A href="MTXRotAxisRad.html">MTXRotAxisRad</A>,
58<A href="MTXRotAxisDeg.html">MTXRotAxisDeg</A>,
59<A href="MTXRotRad.html">MTXRotRad</A>,
60<A href="MTXRotDeg.html">MTXRotDeg</A>
61</P>
62
63<H2>Revision History</H2>
64<P>
652006/03/01 Initial version.<br>
66</P>
67
68<hr><p>CONFIDENTIAL</p></body>
69</HTML>