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>MTXTrans</TITLE> 9</HEAD> 10<BODY> 11<H1>MTXTrans</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15 #include <revolution/mtx.h> 16 17void C_MTXTrans ( Mtx m, f32 xT, f32 yT, f32 zT ); 18void PSMTXTrans ( Mtx m, f32 xT, f32 yT, f32 zT ); 19 20#define MTXTrans C_MTXTrans // for debug build 21#define MTXTrans PSMTXTrans // 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> </TH> 29<TD>New translation 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> 30 </TR> 31 <TR> 32<TH>xT</TH> 33<TD>X translation value</TD> 34 </TR> 35 <TR> 36<TH>yT</TH> 37<TD>Y translation value</TD> 38 </TR> 39 <TR> 40<TH>zT</TH> 41<TD>Z translation value</TD> 42 </TR> 43 </TBODY> 44</TABLE> 45 46<H2>Return Values</H2> 47<P>None.</P> 48 49<H2>Description</H2> 50<P>Sets a translation matrix from three translation parameters (<SPAN class="argument">xT</SPAN>, <SPAN class="argument">yT</SPAN> and <SPAN class="argument">zT</SPAN>).</P> 51<P>During a debug build, the <CODE>MTXTrans</CODE> function is parsed as <CODE>C_MTXTrans</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>PSMTXTrans</CODE>, will be automatically substituted. You can also call <CODE>C_MTXTrans</CODE> and <CODE>PSMTXTrans</CODE> explicitly.</P> 52 53<H2>See Also</H2> 54<P class="reference"> 55<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>, 56<A href="MTXTransApply.html">MTXTransApply</A>, 57<A href="MTXScale.html">MTXScale</A> 58</P> 59 60<H2>Revision History</H2> 61<P> 622006/03/01 Initial version.<br> 63</p> 64 65<hr><p>CONFIDENTIAL</p></body> 66</HTML>