QUATDivide

Syntax

#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

Arguments

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.

Return Values

None.

Description

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.

See Also

Quaternion, QuaternionPtr, QUATMultiply

Revision History

2006/03/01 Initial version.


CONFIDENTIAL