#include <revolution/mtx.h>
f32 C_VECSquareMag ( const Vec* v );
f32 PSVECSquareMag ( const Vec* v );
#define VECSquareMag C_VECSquareMag // for debug build
#define VECSquareMag PSVECSquareMag // for nondebug build
v |
Pointer to Vec for magnitude computation. |
Returns the square of the magnitude of vector v.
This function computes the square of the magnitude of a vector.
VECSquareMag is interpreted as C_VECSquareMag for a debug build that uses a standard C language version. During a nondebug build for a Broadway processor, the paired-singles equivalent of this function, PSVECSquareMag, is automatically substituted. You can also call C_VECSquareMag or PSVECSquareMag explicitly.
03/01/2006 Initial version.