MTXRotTrig

Syntax

#include <revolution.mtx.h>

void C_MTXRotTrig ( Mtx m, u8 axis, f32 sinA, f32 cosA );
void PSMTXRotTrig ( Mtx m, u8 axis, f32 sinA, f32 cosA );

#define MTXRotTrig  C_MTXRotTrig // for debug build
#define MTXRotTrig  PSMTXRotTrig // for nondebug build

Arguments

m   New rotation matrix. The type of m may be either Mtx or MtxPtr.
axis One of the major axes (X, Y, Z). For convenience, axis is specified as a character, one of 'X', 'x', 'Y', 'y', 'Z' and 'z', as appropriate (must include the single quotation marks).
sinA Sine of rotation angle.
cosA Cosine of rotation angle.

Return Values

None.

Description

Creates a rotation matrix about one of the major axes (X, Y, Z).   Counter-clockwise rotations are positive. Rotation values are specified as sines or cosines.

During a debug build, the MTXRotTrig function is parsed as C_MTXRotTrig, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSMTXRotTrig, will be automatically substituted. You can also call C_MTXRotTrig and PSMTXRotTrig explicitly.

See Also

Mtx, MtxPtr, MTXQuat, MTXRotAxisRad, MTXRotAxisDeg, MTXRotRad, MTXRotDeg

Revision History

2006/03/01 Initial version.


CONFIDENTIAL