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>MTXRotDeg</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15 #include <revolution/mtx.h> 16 17#define MTXRotDeg( m, axis, deg ) \ 18 19 MTXRotRad( m, axis, MTXDegToRad(deg) ) 20</pre></dd></dl> 21 22<H2>Arguments</H2> 23<TABLE class="arguments" border="1" > 24 <TBODY> 25 <TR> 26<TH><em><strong><code>m</code></strong></em> </TH> 27<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> 28 </TR> 29 <TR> 30<TH>axis</TH> 31<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> 32 </TR> 33 <TR> 34<TH>deg</TH> 35<TD>Rotation angle in degrees. Counter-clockwise rotations are positive.</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39 40<H2>Return Values</H2> 41<P>None.</P> 42 43<H2>Description</H2> 44<P>Creates a rotation matrix about one of the major axes (X, Y, Z). Counter-clockwise rotations are positive.</P> 45<P>This function is actually defined as a macro that calls the <A href="MTXRotRad.html"><CODE>MTXRotRad</CODE></A> function.</P> 46 47<H2>See Also</H2> 48<P class="reference"> 49<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>, 50<A href="MTXRotRad.html">MTXRotRad</A>, 51<A href="MTXQuat.html">MTXQuat</A>, 52<A href="MTXRotAxisRad.html">MTXRotAxisRad</A>, 53<A href="MTXRotAxisDeg.html">MTXRotAxisDeg</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>