MTXRotAxisDeg

C Specification

#include <revolution/mtx.h>

#define MTXRotAxisDeg( m, axis, deg ) \

MTXRotAxisRad( m, axis, MTXDegToRad(deg) )

Arguments

m New rotation matrix.  m may be an Mtx or an MtxPtr.
axis Pointer to a Vec containing the components of the rotation axis.  axis may also be a Point3dPtr. (x,y,z) members of axis correspond to (x,y,z) components of rotation axis (e.g., (1,0,0) specifies a rotation about the X axis). axis does not have to be a unit vector.
deg Rotation value in degrees. Counter-clockwise rotations are positive.

Return Values

None.

Description

Sets the matrix to perform the rotation about the axis with the (x,y,z) components specified by axis. Counter-clockwise rotations are positive.

This function is actually defined as a macro that calls MTXRotAxisRad.

See Also

Mtx, MtxPtr, Vec, VecPtr, MTXRotAxisRad, MTXQuat, MTXRotRad, MTXRotDeg, MTXRotTrig

Revision History

2006/03/01 Initial version.


CONFIDENTIAL