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_MultAdd</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">VEC_MultAdd <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_MultAdd( 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">v2</font></strong></em></TD> 44<TD>Pointer to a vector.</TD> 45 </TR> 46 <TR> 47<TD><em><strong><font face="Courier New">pDest</font></strong></em></TD> 48<TD>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>Multiplies a <A href="VecFx32.html"><CODE>VecFx32</CODE></A>-type vector by a scalar value and then adds another vector to the product. The result is <SPAN class="argument">*pDest</SPAN> <CODE>=</CODE> <SPAN class="argument">a</SPAN> <CODE>x</CODE> <SPAN class="argument">v1</SPAN> <CODE>+</CODE> <SPAN class="argument">v2</SPAN>.<BR>The pointers <SPAN class="argument">*v1</SPAN>, <SPAN class="argument">*v2</SPAN>, and <SPAN class="argument">*pDest</SPAN> can be pointers to the same vector.</P> 55 56<h2>See Also</h2> 57<P><A href="VecFx32.html"><code>VecFx32</code></A><BR> <A href="VEC_MultSubtract.html"><code>VEC_MultSubtract</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