4 Data Structures

4 Quaternions

QuickDraw3D defines quaternions as quadruples of floating-point numbers. A quaternion is defined by the TQ3Quaternion data type.

For a description of quaternions and their use in computer graphics, see the article by Hart, Francis, and Kaufman listed in the Bibliography and the articles cited in that article.<8bat>u

typedef struct TQ3Quaternion {
 float    w;
 float    x;
 float    y;
 float    z;
} TQ3Quaternion;
w The w component of a quaternion.
x The x component of a quaternion.
y The y component of a quaternion.
z The z component of a quaternion.

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

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker