20 Managing Quaternions

20 Q3Quaternion_SetMatrix

You can use the Q3Quaternion_SetMatrix function to configure a quaternion from a matrix.

TQ3Quaternion *Q3Quaternion_SetMatrix (
TQ3Quaternion *quaternion, 
const TQ3Matrix4x4 *matrix);
quaternion A quaternion.
matrix A 4-by-by matrix.

DESCRIPTION


The Q3Quaternion_SetMatrix function returns, as its function result and in the quaternion parameter, a quaternion that has the same transformational properties as the matrix specified by the matrix 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