VECSquareMag

Syntax

#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 magnitude of the vector v.

Description

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.

See Also

Vec, VecPtr, VECMag

Revision History

2006/03/01 Initial version.


CONFIDENTIAL