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>MTXScaleApply</TITLE>
9</HEAD>
10<BODY>
11<H1>MTXScaleApply</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void C_MTXScaleApply ( const Mtx src, Mtx dst, f32 xS, f32 yS, f32 zS );
18void PSMTXScaleApply ( const Mtx src, Mtx dst, f32 xS, f32 yS, f32 zS );
19
20#define MTXScaleApply&nbsp; C_MTXScaleApply // for debug build
21#define MTXScaleApply&nbsp; PSMTXScaleApply // 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 source type 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 scaled 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>xS</TH>
37<TD>X scale value.</TD>
38    </TR>
39    <TR>
40<TH>yS</TH>
41<TD>Y scale value.</TD>
42    </TR>
43    <TR>
44<TH>zS</TH>
45<TD>Z scale 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 the scaling transform specified by three parameters (<SPAN class="argument">xS</SPAN>, <SPAN class="argument">yS</SPAN> and <SPAN class="argument">zS</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 sc;
57MTXScale(sc, xS, yS, zS);
58MTXConcat(sc, src, dst);
59</pre></dd></dl>
60
61<P>Since the use of this function (<CODE>MTXScaleApply</CODE>) can reduce unnecessary calculations, it can get better performance than using the combination of two functions <A href="MTXScale.html"><CODE>MTXScale</CODE></A> and <A href="../general/MTXConcat.html"><CODE>MTXConcat</CODE></A> shown above.</P>
62<P>During a debug build, the <CODE>MTXScaleApply</CODE> function is parsed as <CODE>C_MTXScaleApply</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>PSMTXScaleApply</CODE>, will be automatically substituted. You can also call <CODE>C_MTXScaleApply</CODE> and <CODE>PSMTXScaleApply</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="MTXScale.html">MTXScale</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>