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