#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
p |
Pointer to the first Quaternion. |
q |
Pointer to the second Quaternion. |
Dot product of p and q.
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.
03/01/2006 Initial version.