MTXRotAxisDeg

Syntax

#include <revolution/mtx.h>

#define MTXRotAxisDeg( m, axis, deg ) \

  MTXRotAxisRad( m, axis, MTXDegToRad(deg) )

Arguments

m   New rotation matrix. The type of m is either Mtx or MtxPtr.
axis Pointer to a Vec containing the components of the rotation axis. axis may also be a Point3dPtr. The (x,y,z) members of axis correspond to the (x,y,z) components of the rotation axis. (For example, (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 be rotated around the axis having the (x,y,z) component specified by axis. Counter-clockwise rotations are positive.

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

See Also

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

Revision History

2006/03/01 Initial version.


CONFIDENTIAL