VECSquareMag

C Specification

    #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

Arguments

v Pointer to Vec for magnitude computation.

Return Values

Returns the square of the magnitude of vector v.

Description

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.

See Also

Vec, VecPtr,

VECMag

Revision History

03/01/2006 Initial version.