#include <revolution/mtx.h> f32 C_VECMag ( const Vec* v ); f32 PSVECMag ( const Vec* v ); #define VECMag C_VECMag // for debug build #define VECMag PSVECMag // for nondebug build
| v | Pointer to Vec for magnitude computation |
|---|
Returns the magnitude of the vector v.
This function computes the magnitude of a vector.
During a debug build, VECMag is parsed as C_VECMag, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSVECMag, will be automatically substituted. You can also call C_VECMag and PSVECMag explicitly.
Vec, VecPtr, VECNormalize, VECSquareMag
2006/03/01 Initial version.
CONFIDENTIAL