1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>VEC_MultSubtract</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">VEC_MultSubtract <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<PRE><CODE>#include <nitro/fx/fx_vec.h> 20 21void VEC_MultSubtract( 22 fx32 a, 23 const VecFx32* v1, 24 const VecFx32* v2, 25 VecFx32* pDest 26);</CODE></PRE> 27 </dd> 28</dl><h2>Arguments</h2> 29 30<table border="1" width="100%"> 31 32 33 34 <TR> 35 <TD width="176"><em><strong><font face="Courier New">a</font></strong></em></TD> 36 <TD width="670">An <CODE>fx32</CODE> type scalar value.</TD> 37 </TR> 38 <TR> 39 <TD><em><strong><font face="Courier New">v1</font></strong></em></TD> 40 <TD>Pointer to a vector.</TD> 41 </TR> 42 <TR> 43 <TD><em><strong><font face="Courier New"><em><strong><code>v2</code></strong></em> </font></strong></em></TD> 44 <TD>Pointer to a vector.</TD> 45 </TR> 46 <TR> 47 <TD><em><strong><font face="Courier New"><em><strong><code>pDest</code></strong></em> </font></strong></em></TD> 48 <TD>The pointer to the vector where the result is stored.</TD> 49 </TR> 50 </table> 51<h2>Return Values</h2> 52<p>None.</p> 53<H2>Description</H2> 54<P>This function multiplies a <CODE><A href="VecFx32.html">VecFx32</A></CODE>-type vector by a scalar value and then subtracts another vector from the product. The result is shown by *<em><strong><code>pDest</code></strong></em><CODE> = </CODE><em><strong><code>a</code></strong></em><CODE> x </CODE><em><strong><code>*v1</code></strong></em><CODE> - </CODE><em><strong><code>*v2</code></strong></em>. <em><strong><code>v1</code></strong></em>, <em><strong><code>v2</code></strong></em>, and <em><strong><code>pDst</code></strong></em> can be pointers to the same vector.</P> 55 56<h2>See Also</h2> 57<P><A href="VecFx32.html"><code>VecFx32</code></A>, <A href="VEC_MultAdd.html"><code>VEC_MultAdd</code></A></P> 58<H2>Revision History</H2> 59<P>2004/02/16 Initial version.</P> 60<hr><p>CONFIDENTIAL</p></body> 61</html> 62