#include <revolution/mtx.h> void C_QUATRotAxisRad ( Quaternion* r, const Vec* axis, f32 rad ); #define QUATRotAxisRad C_QUATRotAxisRad
| 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. |
None.
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.
2006/03/01 Initial version.
CONFIDENTIAL