#include <revolution/mtx.h> void C_QUATDivide ( const Quaternion* p, const Quaternion* q, Quaternion* r ); void PSQUATDivide ( const Quaternion* p, const Quaternion* q, Quaternion* r ); #define QUATDivide C_QUATDivide // for debug build #define QUATDivide PSQUATDivide // for nondebug build
| p | Pointer to the first Quaternion to Division. |
|---|---|
| q | Pointer to the second Quaternion to Division. |
| r | Pointer to resultant Quaternion. ( Contains the result of ( p / q ). Acceptable if r = p or r = q. |
None.
Divides quaternion p by another quaternion q and stores the result in r. The result, r, satisfies the equation ( q x r ) = p.
During a debug build, QUATDivide is interpreted as C_QUATDivide, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSQUATDivide, will be automatically substituted. You can also call each of C_QUATDivide/PSQUATDivide explicitly.
Quaternion, QuaternionPtr, QUATMultiply
2006/03/01 Initial version.
CONFIDENTIAL