MTXQuat

C Specification

#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

Arguments

m New rotation matrix.  m may be either an Mtx or an MtxPtr.
q Pointer to a Quaternion containing (x,y,z,w) values from which to generate m.

Return Values

None.

Description

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 nondebug build for a Broadway processor, the paired-singles equivalent of this function, PSMTXQuat, will be automatically substituted. You can also call C_MTXQuat or PSMTXQuat explicitly.

See Also

Mtx, MtxPtr, Quaternion, QuaternionPtr, MTXRotAxisRad, MTXRotAxisDeg, MTXRotRad, MTXRotDeg, MTXRotTrig

Revision History

2006/03/01 Initial version.


CONFIDENTIAL