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>MTXRotDeg</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">MTXRotDeg</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>#define MTXRotDeg( <EM>m</EM>, <EM>axis</EM>, <EM>deg</EM> ) \</CODE></CODE></BLOCKQUOTE>
15<BLOCKQUOTE><CODE><CODE>MTXRotRad( m, axis, MTXDegToRad(deg) )</CODE></CODE></BLOCKQUOTE>
16<H2 align="left">Arguments</H2>
17<DIV align="left">
18<TABLE border="1" cellpadding="3" cellspacing="0.1">
19  <TBODY>
20    <TR>
21<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>m</EM></STRONG></CODE></TD>
22<TD width="520">New rotation matrix.&nbsp; <code><em><strong>m</strong></em></code> may be a <A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx</CODE></A> or a <A href="../structures/Mtx_MtxPtr.html"><CODE>MtxPtr</CODE></A>.</TD>
23    </TR>
24    <TR>
25<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>axis</EM></STRONG></CODE></TD>
26<TD width="520">One of the major (X, Y, Z ) axes.&nbsp;For convenience, <code><em><strong>axis</strong></em></code> is specified as a character, one of <CODE>'X'</CODE>, <CODE>'x'</CODE>, <CODE>'Y'</CODE>, <CODE>'y'</CODE>, <CODE>'Z'</CODE>, <CODE>'z'</CODE>, as appropriate (must include the single quotation marks).</TD>
27    </TR>
28    <TR>
29<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>deg</EM></STRONG></CODE></TD>
30<TD width="520">Rotation angle in degrees.&nbsp;Counter-clockwise rotations are positive.</TD>
31    </TR>
32  </TBODY>
33</TABLE>
34</DIV>
35<H2 align="left">Return Values</H2>
36<P align="left">None.</P>
37<H2 align="left">Description</H2>
38<P>Creates a rotation matrix about one of the major (X, Y, Z ) axes. &nbsp;Counter-clockwise rotations are positive.</P>
39<P>This function is actually defined as a macro which calls <a href="MTXRotRad.html"><code>MTXRotRad</code></a>.</P>
40
41
42<H2 align="left">See Also</H2>
43<P align="left"><A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx, MtxPtr, </CODE></A><A href="MTXRotRad.html"><CODE>MTXRotRad, </CODE></A><A href="MTXQuat.html"><CODE>MTXQuat</CODE></A>, <CODE><A href="MTXRotAxisRad.html">MTXRotAxisRad</A></CODE>, <CODE><A href="MTXRotAxisDeg.html">MTXRotAxisDeg</A></CODE>, <CODE><A href="MTXRotTrig.html">MTXRotTrig</A></CODE></P>
44<H2>Revision History</H2>
45<P>03/01/2006 Initial version.</P>
46</BODY>
47</HTML>