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