20 Managing Quaternions

20 Q3Quaternion_SetRotateXYZ

You can use the Q3Quaternion_SetRotateXYZ function to configure a quaternion having a specified rotation around the x, y, and z axes.

TQ3Quaternion *Q3Quaternion_SetRotateXYZ (
TQ3Quaternion *quaternion, 
float xAngle, 
float yAngle, 
float zAngle);
quaternion A quaternion.
xAngle The desired angle of rotation around the x axis, in radians.
yAngle The desired angle of rotation around the y axis, in radians.
zAngle The desired angle of rotation around the z axis, in radians.

DESCRIPTION


The Q3Quaternion_SetRotateXYZ function returns, as its function result and in the quaternion parameter, a quaternion that rotates an object by the specified angles around the x, y, and z axes.

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