#include <revolution/mtx.h> void C_MTXQuat ( Mtx m, const QuaternionPtr q ); void PSMTXQuat ( Mtx m, const QuaternionPtr q ); #define MTXQuat C_MTXQuat // for debug build #define MTXQuat PSMTXQuat // for nondebug build
| m | New rotation matrix. m can be an Mtx or an MtxPtr. |
|---|---|
| q | Pointer to a quaternion containing (x,y,z,w) values from which to generate m. |
None.
Sets a rotation matrix from a quaternion.
During a debug build, MTXQuat is interpreted as C_MTXQuat, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSMTXQuat, will be automatically substituted. You can also call each of C_MTXQuat/PSMTXQuat explicitly.
Mtx, MtxPtr, Quaternion, QuaternionPtr, MTXRotAxisRad, MTXRotAxisDeg, MTXRotRad, MTXRotDeg, MTXRotTrig
2006/03/01 Initial version.
CONFIDENTIAL