Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 4 - Geometric Objects / Geometric Objects Reference
Data Structures


Quaternions

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

Note
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.
typedef struct TQ3Quaternion {
   float       w;
   float       x;
   float       y;
   float       z;
} TQ3Quaternion;
Field Description
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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help