QUATMultiply

C Specification

#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 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.

Return Values

None.

Description

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.

See Also

Quaternion, QuaternionPtr, QUATDivide

Revision History

03/01/2006 Initial version.