VECMag

Syntax

    #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

Arguments

v Pointer to Vec for magnitude computation

Return Values

Returns the magnitude of the vector v.

Description

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.

See Also

Vec, VecPtr, VECNormalize, VECSquareMag

Revision History

2006/03/01 Initial version.


CONFIDENTIAL