VECAdd

C Specification

#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

Arguments

a Pointer to first Vec to add.
b   Pointer to second Vec to add.
ab   Pointer to resultant Vec. Contains the result of ( a + b ). Acceptable if ab = a or ab = b.

Return Values

None.

Description

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.

See Also

Vec, VecPtr, VECSubtract

Revision History

03/01/2006 Initial version.