#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 the first quaternion to multiply. |
|---|---|
| q | Pointer to the second quaternion to multiply. |
| pq | Pointer to the 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 that 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
2006/03/01 Initial version.
CONFIDENTIAL