QUATSubtract

Syntax

#include <revolution/mtx.h>

void C_QUATSubtract ( const Quaternion* p, const Quaternion* q, Quaternion* r );
void PSQUATSubtract ( const Quaternion* p, const Quaternion* q, Quaternion* r );

#define QUATSubtract C_QUATSubtract // for debug build
#define QUATSubtract PSQUATSubtract // for nondebug build

Arguments

p Pointer to the first quaternion to subtract.
q Pointer to the second quaternion to subtract.
r Pointer to the resultant quaternion.( Contains the result of ( p - q ). Acceptable if r = p or r = q.

Return Values

None.

Description

Subtracts two quaternions, p - q, and places the result in r.

During a debug build, QUATSubtract is interpreted as C_QUATSubtract, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSQUATSubtract, will be automatically substituted. You can also call each of C_QUATSubtract/PSQUATSubtract explicitly.

See Also

Quaternion, QuaternionPtr, QUATAdd

Revision History

2006/03/01 Initial version.


CONFIDENTIAL