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>MTXRotAxisRad</TITLE>
9</HEAD>
10<BODY>
11<H1>MTXRotAxisRad</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void C_MTXRotAxisRad ( Mtx m, VecPtr axis, f32 rad );
18void PSMTXRotAxisRad ( Mtx m, VecPtr axis, f32 rad );
19
20#define MTXRotAxisRad&nbsp; C_MTXRotAxisRad // for debug build
21#define MTXRotAxisRad&nbsp; PSMTXRotAxisRad // 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.&nbsp;<code><em><strong>m</strong></em></code> may 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>axis</TH>
33<TD>Pointer to a <A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A> containing the components of the rotation axis.&nbsp; <SPAN class="argument">axis</SPAN> may also be a <A href="../structures/Point3d_Point3dPtr.html"><CODE>Point3dPtr</CODE></A>.&nbsp;The <CODE>(x,y,z)</CODE> members of <SPAN class="argument">axis</SPAN> correspond to the <CODE>(x,y,z)</CODE> components of the rotation axis. For example, <CODE>(1,0,0)</CODE> indicates a rotation about the X axis. <SPAN class="argument">axis</SPAN> does not have to be a unit vector.</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>Sets the matrix to be rotated around the axis having the <CODE>(x,y,z)</CODE> component specified by <SPAN class="argument">axis</SPAN>. Counter-clockwise rotations are positive.</P>
47<P>During a debug build, <code>MTXRotAxisRad</code> is interpreted as <code>C_MTXRotAxisRad</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>PSMTXRotAxisRad</code>, will be automatically substituted. You can also call <CODE>C_MTXRotAxisRad</CODE> and <CODE>PSMTXRotAxisRad</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="../structures/Vec_VecPtr.html">Vec, VecPtr</A>,
53<A href="MTXQuat.html">MTXQuat</A>,
54<A href="MTXRotRad.html">MTXRotRad</A>,
55<A href="MTXRotTrig.html">MTXRotTrig</A>
56</P>
57
58<H2>Revision History</H2>
59<P>
602006/03/01 Initial version.<br>
61</P>
62
63<hr><p>CONFIDENTIAL</p></body>
64</HTML>