20 Managing Quaternions

20 Q3Vector3D_TransformQuaternion

You can use the Q3Vector3D_TransformQuaternion function to transform a vector by a quaternion.

TQ3Vector3D *Q3Vector3D_TransformQuaternion (
const TQ3Vector3D *vector, 
const TQ3Quaternion *quaternion, 
TQ3Vector3D *result);
vector A three-dimensional vector.
quaternion A quaternion.
result On exit, a three-dimensional vector that is the result of transforming the specified vector by the specified quaternion.

DESCRIPTION


The Q3Vector3D_TransformQuaternion function returns, as its function result and in the result parameter, a three-dimensional vector that is the result of transforming the vector specified by the vector parameter using the quaternion specified by the quaternion 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