MTXRotDeg

C Specification

#include <revolution/mtx.h>
#define MTXRotDeg( m, axis, deg ) \
MTXRotRad( m, axis, MTXDegToRad(deg) )

Arguments

m New rotation matrix.  m may be a Mtx or a MtxPtr.
axis One of the major (X, Y, Z ) axes. For convenience, axis is specified as a character, one of 'X', 'x', 'Y', 'y', 'Z', '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 (X, Y, Z ) axes.  Counter-clockwise rotations are positive.

This function is actually defined as a macro which calls MTXRotRad.

See Also

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

Revision History

03/01/2006 Initial version.