Q3Quaternion_SetRotateAboutAxis
You can use theQ3Quaternion_SetRotateAboutAxisfunction to configure a rotate-about-axis quaternion.
TQ3Quaternion *Q3Quaternion_SetRotateAboutAxis ( TQ3Quaternion *quaternion, const TQ3Vector3D *axis, float angle);
quaternion- A quaternion.
axis- The desired axis of rotation.
angle- The desired angle of rotation, in radians.
DESCRIPTION
TheQ3Quaternion_SetRotateAboutAxisfunction returns, as its function result and in thequaternionparameter, a rotate-about-axis quaternion that rotates an object by the angleanglearound the axis specified by theaxisparameter.