#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
| src | Pointer to source Vec. |
|---|---|
| unit | Pointer to the resultant unit vector Vec. Acceptable if unit = src. |
None.
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 each of C_VECNormalize/PSVECNormalize explicitly.
2006/03/01 Initial version.
CONFIDENTIAL