MTXRotDeg

Syntax

    #include <revolution/mtx.h>

#define MTXRotDeg( m, axis, deg ) \

    MTXRotRad( m, axis, MTXDegToRad(deg) )

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).
deg Rotation angle in degrees. Counter-clockwise rotations are positive.

Return Values

None.

Description

Creates a rotation matrix about one of the major axes (X, Y, Z).  Counter-clockwise rotations are positive.

This function is actually defined as a macro that calls the MTXRotRad function.

See Also

Mtx, MtxPtr, MTXRotRad, MTXQuat, MTXRotAxisRad, MTXRotAxisDeg, MTXRotTrig

Revision History

2006/03/01 Initial version.


CONFIDENTIAL