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>MTXRotRad</TITLE>
9</HEAD>
10<BODY>
11<H1>MTXRotRad</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void C_MTXRotRad ( Mtx m, u8 axis, f32 rad );
18void PSMTXRotRad ( Mtx m, u8 axis, f32 rad );
19
20#define MTXRotRad&nbsp; C_MTXRotRad // for debug build
21#define MTXRotRad&nbsp; PSMTXRotRad // 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. The type of <SPAN class="argument">m</SPAN> is 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 passed in 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>rad</TH>
37<TD>Rotation angle in radians.&nbsp;Counter-clockwise rotations are positive.</TD>
38    </TR>
39  </TBODY>
40</TABLE>
41
42<H2>Return Values</H2>
43<P>None.</P>
44
45<H2>Description</H2>
46<P>Creates a rotation matrix about one of the major axes (X, Y, Z). Counter-clockwise rotations are positive.</P>
47<P>During a debug build, the <CODE>MTXRotRad</CODE> function is parsed as <CODE>C_MTXRotRad</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>PSMTXRotRad</CODE>, will be automatically substituted. You can also call <CODE>C_MTXRotRad</CODE> and <CODE>PSMTXRotRad</CODE> explicitly.</P>
48
49<H2>See Also</H2>
50<P class="reference">
51<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>,
52<A href="MTXQuat.html">MTXQuat</A>,
53<A href="MTXRotAxisRad.html">MTXRotAxisRad</A>,
54<A href="MTXRotTrig.html">MTXRotTrig</A>
55</P>
56
57<H2>Revision History</H2>
58<P>
592006/03/01 Initial version.<br>
60</P>
61
62<hr><p>CONFIDENTIAL</p></body>
63</HTML>