#include <revolution/mtx.h>
#define MTXRotDeg( m, axis, deg ) \
MTXRotRad( m, axis, MTXDegToRad(deg) )
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. |
None.
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.
Mtx, MtxPtr, MTXRotRad, MTXQuat, MTXRotAxisRad, MTXRotAxisDeg, MTXRotTrig
03/01/2006 Initial version.