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 align="left">MTXRotTrig</H1> 12<H2 align="left">C Specification</H2> 13<BLOCKQUOTE><CODE><code>#include <revolution.mtx.h></CODE></CODE></BLOCKQUOTE> 14<BLOCKQUOTE><CODE><CODE>void C_MTXRotTrig ( Mtx <EM>m</EM>, u8 <EM>axis</EM>, f32 <EM>sinA</EM>, f32 <EM>cosA</EM> );<BR> void PSMTXRotTrig ( Mtx <EM>m</EM>, u8 <EM>axis</EM>, f32 <EM>sinA</EM>, f32 <EM>cosA</EM> );<BR> <BR> #define MTXRotTrig C_MTXRotTrig // for debug build<BR> #define MTXRotTrig PSMTXRotTrig // for nondebug build<BR></CODE></CODE></BLOCKQUOTE> 15<H2 align="left">Arguments</H2> 16<DIV align="left"> 17<TABLE border="1" cellpadding="3" cellspacing="0.1"> 18 <TBODY> 19 <TR> 20<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>m</EM></STRONG></CODE></TD> 21<TD width="520">New rotation matrix. <code><em><strong>m</strong></em></code> may be either an <A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx</CODE></A> or an <A href="../structures/Mtx_MtxPtr.html"><CODE>MtxPtr</CODE></A>.</TD> 22 </TR> 23 <TR> 24<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>axis</EM></STRONG></CODE></TD> 25<TD width="520">one of the major (X, Y, Z ) axes. For convenience, <code><em><strong>axis</strong></em></code> is specified as a character, one of the <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> 26 </TR> 27 <TR> 28<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>sinA</EM></STRONG></CODE></TD> 29<TD width="520">Sine of rotation angle.</TD> 30 </TR> 31 <TR> 32<TD width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>cosA</EM></STRONG></CODE></TD> 33<TD width="520">Cosine of rotation angle.</TD> 34 </TR> 35 </TBODY> 36</TABLE> 37</DIV> 38<H2 align="left">Return Values</H2> 39<P align="left">None.</P> 40<H2 align="left">Description</H2> 41<P>Creates a rotation matrix about one of the major (X, Y, Z ) axes. Counter-clockwise rotations are positive. Rotation values are specified as sines or cosines.</P> 42<P>During a debug build, <code>MTXRotTrig</code> is interpreted as <code>C_MTXRotTrig</code>, which is a normal C language version. During a nondebug build for a Broadway processor, the paired-singles equivalent of this function, <code>PSMTXRotTrig</code>, will be automatically substituted. You can also call each of <code>C_MTXRotTrig/PSMTXRotTrig</code> explicitly.</P> 43 44 45<H2 align="left">See Also</H2> 46<P align="left"><A href="../structures/Mtx_MtxPtr.html"><CODE>Mtx, MtxPtr, </CODE></A><A href="MTXQuat.html"><CODE>MTXQuat</CODE></A>, <A href="MTXRotAxisRad.html"><CODE>MTXRotAxisRad</CODE></A>, <A href="MTXRotAxisDeg.html"><CODE>MTXRotAxisDeg</CODE></A>, <A href="MTXRotRad.html"><CODE>MTXRotRad</CODE></A>, <A href="MTXRotDeg.html"><CODE>MTXRotDeg</CODE></A></P> 47<H2>Revision History</H2> 48<P>2006/03/01 Initial version.</P> 49<hr> 50<P>CONFIDENTIAL</p> 51</BODY> 52</HTML>