20 Managing Quaternions

20 Q3Quaternion_SetRotateAboutAxis

You can use the Q3Quaternion_SetRotateAboutAxis function 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


The Q3Quaternion_SetRotateAboutAxis function returns, as its function result and in the quaternion parameter, a rotate-about-axis quaternion that rotates an object by the angle angle around the axis specified by the axis parameter.

DESCRIPTION

3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker