QUATRotAxisRad

Syntax

#include <revolution/mtx.h>

void C_QUATRotAxisRad ( Quaternion* r, const Vec* axis, f32 rad );

#define QUATRotAxisRad  C_QUATRotAxisRad

Arguments

r Pointer to the resultant quaternion.
axis Pointer to a Vec containing the components of the rotation axis. axis does not have to be a unit vector.
rad Rotation value in radians. Counter-clockwise rotation is positive.

Return Values

None.

Description

Sets a quaternion for rotation about an arbitrary axis whose ( x, y, z ) components are specified by axis. Amount of rotation is specified by rad. Counter-clockwise rotation is considered positive.

See Also

Quaternion, QuaternionPtr

Revision History

2006/03/01 Initial version.


CONFIDENTIAL