#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 the first Quaternion to add. |
|---|---|
| q | Pointer to the 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 parsed 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 C_QUATAdd and PSQUATAdd explicitly.
Quaternion, QuaternionPtr, QUATSubtract
2006/03/01 Initial version.
CONFIDENTIAL