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>VECMag</TITLE> 9</HEAD> 10<BODY> 11<H1>VECMag</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15 #include <revolution/mtx.h> 16 17f32 C_VECMag ( const Vec* v ); 18f32 PSVECMag ( const Vec* v ); 19 20#define VECMag C_VECMag // for debug build 21#define VECMag PSVECMag // for nondebug build 22</pre></dd></dl> 23 24<H2>Arguments</H2> 25<TABLE class="arguments" border="1" > 26 <TBODY> 27 <TR> 28<TH>v</TH> 29<TD>Pointer to <A href="../structures/Vec_VecPtr.html"><CODE>Vec</CODE></A> for magnitude computation</TD> 30 </TR> 31 </TBODY> 32</TABLE> 33 34<H2>Return Values</H2> 35<P>Returns the magnitude of the vector <SPAN class="argument">v</SPAN>.</P> 36 37<H2>Description</H2> 38<P>This function computes the magnitude of a vector.</P> 39<P>During a debug build, <CODE>VECMag</CODE> is parsed as <CODE>C_VECMag</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>PSVECMag</CODE>, will be automatically substituted. You can also call <CODE>C_VECMag</CODE> and <CODE>PSVECMag</CODE> explicitly.</P> 40 41<H2>See Also</H2> 42<P class="reference"> 43<A href="../structures/Vec_VecPtr.html">Vec, VecPtr</A>, 44<A href="VECNormalize.html">VECNormalize</A>, 45<A href="VECSquareMag.html">VECSquareMag</A> 46</P> 47 48<H2>Revision History</H2> 49<P> 502006/03/01 Initial version.<br> 51</P> 52 53<hr><p>CONFIDENTIAL</p></body> 54</HTML>