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 http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>MTXTransApply</TITLE> 9</HEAD> 10<BODY> 11<H1>MTXTransApply</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/mtx.h> 16 17void C_MTXTransApply ( const Mtx src, Mtx dst, f32 xT, f32 yT, f32 zT ); 18void PSMTXTransApply ( Mtx src, Mtx dst, f32 xT, f32 yT, f32 zT ); 19 20#define MTXTransApply C_MTXTransApply // for debug build 21#define MTXTransApply PSMTXTransApply // for nondebug build 22</pre></dd></dl> 23 24<H2>Arguments</H2> 25<TABLE class="arguments" border="1" > 26 <TBODY> 27 <TR> 28<TH>src</TH> 29<TD>Source matrix. The type of <SPAN class="argument">src</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>dst</TH> 33<TD>Resultant translated source matrix. The type of <SPAN class="argument">dst</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> 34 </TR> 35 <TR> 36<TH>xT</TH> 37<TD>X-translation value.</TD> 38 </TR> 39 <TR> 40<TH>yT</TH> 41<TD>Y-translation value.</TD> 42 </TR> 43 <TR> 44<TH>zT</TH> 45<TD>Z-translation value.</TD> 46 </TR> 47 </TBODY> 48</TABLE> 49 50<H2>Return Values</H2> 51<P>None.</P> 52 53<H2>Description</H2> 54<P>Applies a translation specified by three parameters (<SPAN class="argument">xT</SPAN>, <SPAN class="argument">yT</SPAN> and <SPAN class="argument">zT</SPAN>) to <SPAN class="argument">src</SPAN> and places the result in <SPAN class="argument">dst</SPAN>. This function performs the same operation as the following:</P> 55<dl><dd><pre class="construction"> 56Mtx tr; 57MTXTrans(tr, xT, yT, zT); 58MTXConcat(tr, src, dst); 59</pre></dd></dl> 60 61<P>Since the use of this function (<CODE>MTXTransApply</CODE>) can reduce unnecessary calculations, it can get better performance than using the combination of two functions <A href="MTXTrans.html"><CODE>MTXTrans</CODE></A> and <A href="../general/MTXConcat.html"><CODE>MTXConcat</CODE></A> shown above.</P> 62<P>During a debug build, <CODE>MTXTransApply</CODE> is parsed as <CODE>C_MTXTransApply</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>PSMTXTransApply</CODE>, will be automatically substituted. You can also call <CODE>C_MTXTransApply</CODE> and <CODE>PSMTXTransApply</CODE> explicitly.</P> 63 64<H2>See Also</H2> 65<P class="reference"> 66<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>, 67<A href="MTXTrans.html">MTXTrans</A>, 68<A href="../general/MTXConcat.html">MTXConcat</A> 69</P> 70 71<H2>Revision History</H2> 72<P> 732006/03/01 Initial version.<br> 74</P> 75 76<hr><p>CONFIDENTIAL</p></body> 77</HTML>