#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 |
Returns the dot product of p and q.
Computes the dot product of two given quaternions.
During a debug build, QUATDotProduct is parsed 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 and PSQUATDotProduct explicitly.
2006/03/01 Initial version.
CONFIDENTIAL