VECNormalize

C Specification

#include <revolution/mtx.h>
void C_VECNormalize ( const Vec* src, Vec* unit );
void PSVECNormalize ( const Vec* src, Vec* unit );

#define VECNormalize C_VECNormalize // for debug build
#define VECNormalize PSVECNormalize // for nondebug build

Arguments

src Pointer to source Vec.
unit Pointer to resultant unit vector Vec. Acceptable if unit = src.

Return Values

None.

Description

This function computes a unit vector from src and places it in unit.

During a debug build, VECNormalize is interpreted as C_VECNormalize, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSVECNormalize, will be automatically substituted. You can also call C_VECNormalize or PSVECNormalize explicitly.

See Also

Vec, VecPtr,

VECMag

Revision History

2006/03/01 Initial version.


CONFIDENTIAL