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>MTXMultVec</TITLE>
9</HEAD>
10<BODY>
11<H1>MTXMultVec</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17void C_MTXMultVec ( const Mtx m, const Vec* src, Vec* dst );
18void PSMTXMultVec ( const Mtx m, const Vec* src, Vec* dst );
19
20#define MTXMultVec&nbsp; C_MTXMultVec // for debug build
21#define MTXMultVec&nbsp; PSMTXMultVec // 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>&nbsp;&nbsp;</TH>
29<TD>Source matrix to multiply. <code><em><strong>m</strong></em></code> may be either a <a href="../Structures/Mtx_MtxPtr.html"><code>Mtx</code></a> or a <a href="../Structures/Mtx_MtxPtr.html"><code>MtxPtr</code></a>.</TD>
30    </TR>
31    <TR>
32<TH>src</TH>
33<TD>Pointer to the source vector (<A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A> type) to be multiplied. <code><em><strong>src</strong></em></code> may also be a pointer to a <code><strong>Point3d</strong></code>.</TD>
34    </TR>
35    <TR>
36<TH>dst</TH>
37<TD>Pointer to the vector (<A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A> type) resulting from the multiplication (<SPAN class="argument">m</SPAN> x <SPAN class="argument">src</SPAN>). <code><em><strong>dst</strong></em></code> may also be a pointer to a <code><strong>Point3d</strong></code>. OK if <SPAN class="argument">src</SPAN>=<SPAN class="argument">dst</SPAN>.&nbsp;</TD>
38    </TR>
39  </TBODY>
40</TABLE>
41
42<H2>Return Values</H2>
43<P>None.</P>
44
45<H2>Description</H2>
46<P>Pre-multiplies a 3D vector or 3D point by a matrix ( <SPAN class="argument">m</SPAN> x <SPAN class="argument">src</SPAN> = <SPAN class="argument">dst</SPAN> ).<BR>For multiplication purposes, the vector is treated as a four-element column vector with an implied fourth <EM>w</EM> coordinate of 1.</P>
47<P>During a debug build, <code>MTXMultVec</code> is interpreted as <code>C_MTXMultVec</code>, which is a normal C language version. During a nondebug build for a Broadway processor, the paired-singles equivalent of this function, <code>PSMTXMultVec</code>, will be automatically substituted. You can also call each of <code>C_MTXMultVec/PSMTXMultVec</code> explicitly.</P>
48
49<H2>See Also</H2>
50<P class="reference">
51<A href="../structures/Mtx_MtxPtr.html">Mtx, MtxPtr</A>,
52<A href="../structures/Point3d_Point3dPtr.html">Point3d, Point3dPtr</A>,
53<A href="../structures/Vec_VecPtr.html">Vec, VecPtr</A>,
54<A href="MTXMultVecSR.html">MTXMultVecSR</A>,
55<A href="MTXMultVecArray.html">MTXMultVecArray</A>,
56<A href="MTXMultVecArraySR.html">MTXMultVecArraySR</A>
57</P>
58
59<H2>Revision History</H2>
60<P>
612008/05/26 Corrected errors.<br>2006/03/01 Initial version.<br>
62</P>
63
64<hr><p>CONFIDENTIAL</p></body>
65</HTML>