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="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>VECSquareMag</TITLE>
9</HEAD>
10<BODY>
11<H1>VECSquareMag</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/mtx.h&gt;
16
17f32 C_VECSquareMag ( const Vec* v );
18f32 PSVECSquareMag ( const Vec* v );
19
20#define VECSquareMag&nbsp; C_VECSquareMag // for debug build
21#define VECSquareMag&nbsp; PSVECSquareMag // 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 square magnitude of the vector <SPAN class="argument">v</SPAN>.</P>
36
37<H2>Description</H2>
38<P>This function computes the square of the magnitude of a vector.</P>
39<P>During a debug build, <CODE>VECSquareMag</CODE> is parsed as <CODE>C_VECSquareMag</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>PSVECSquareMag</CODE>, will be automatically substituted. You can also call <code>C_VECSquareMag</CODE> or <CODE>PSVECSquareMag</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="VECMag.html">VECMag</A>
45</P>
46
47<H2>Revision History</H2>
48<P>
492006/03/01 Initial version.<br>
50</P>
51
52<hr><p>CONFIDENTIAL</p></body>
53</HTML>
54