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