#include <revolution/mtx.h>
void C_VECAdd ( const Vec* a, const Vec* b, Vec* ab );
void PSVECAdd ( const Vec* a, const Vec* b, Vec* ab );
#define VECAdd C_VECAdd // for debug build
#define VECAdd PSVECAdd // for nondebug build
a |
Pointer to first Vec to add. |
|
Pointer to second Vec to add. |
|
Pointer to resultant Vec. Contains the result of ( a + b ). Acceptable if ab = a or ab = b. |
None.
Adds two vectors ( a + b ) and places the result in ab.
During a debug build, VECAdd is interpreted as C_VECAdd, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSVECAdd, will be automatically substituted. You can also call C_VECAdd or PSVECAdd explicitly.
03/01/2006 Initial version.