#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 the first Vec to add. |
|---|---|
| b | Pointer to the second Vec to add. |
| ab | 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 each of C_VECAdd/PSVECAdd explicitly.
2006/03/01 Initial version.
CONFIDENTIAL