#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 magnitude of the vector v.
This function computes the square of the magnitude of a vector.
During a debug build, VECSquareMag is parsed as C_VECSquareMag, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSVECSquareMag, will be automatically substituted. You can also call C_VECSquareMag or PSVECSquareMag explicitly.
2006/03/01 Initial version.
CONFIDENTIAL