QUATMultiply

Syntax

#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

Arguments

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.

Return Values

None.

Description

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.

See Also

Quaternion, QuaternionPtr, QUATDivide

Revision History

2006/03/01 Initial version.


CONFIDENTIAL