#include <revolution/mtx.h>
void C_QUATMultiply ( const Quaternion* p, const Quaternion* q, Quaternion* pq );
void PSQUATMultiply ( const Quaternion* p, const Quaternion* q, Quaternion* pq );
#define QUATMultiply C_QUATMultiply // for debug build
#define QUATMultiply PSQUATMultiply // for nondebug build
p |
Pointer to first Quaternion for multiplication. |
q |
Pointer to second Quaternion for multiplication. |
pq |
Pointer to resultant Quaternion. Contains the result of ( p x q ). Acceptable if pq = p or pq = q. |
None.
Multiplies two quaternions (p x q) and stores the result in pq.
Note: The arguments p and q are not variable when using this operation.
During a debug build, QUATMultiply is interpreted as C_QUATMultiply, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSQUATMultiply, will be automatically substituted. You can also call each of C_QUATMultiply/PSQUATMultiply explicitly.
Quaternion, QuaternionPtr, QUATDivide
03/01/2006 Initial version.