QUATDotProduct

C Specification

#include <revolution/mtx.h>
f32 C_QUATDotProduct ( const Quaternion* p, const Quaternion* q );
f32 PSQUATDotProduct ( const Quaternion* p, const Quaternion* q );

#define QUATDotProduct  C_QUATDotProduct // for debug build
#define QUATDotProduct  PSQUATDotProduct // for nondebug build

Arguments

p Pointer to the first Quaternion.
q Pointer to the second Quaternion.

Return Values

Dot product of p and q.

Description

Computes the dot product of two given quaternions.

During a debug build, QUATDotProduct is interpreted as C_QUATDotProduct, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSQUATDotProduct, will be automatically substituted. You can also call C_QUATDotProduct or PSQUATDotProduct explicitly.

See Also

Quaternion, QuaternionPtr

Revision History

03/01/2006 Initial version.