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


Points

QuickDraw 3D defines two- and three-dimensional points in the usual way, as pairs and triples of floating-point numbers. You'll use the TQ3Point3D data type throughout the QuickDraw 3D application programming interfaces. You'll use the TQ3Point2D data type for defining two-dimensional points.

typedef struct TQ3Point2D {
   float       x;
   float       y;
} TQ3Point2D;
typedef struct TQ3Point3D {
   float       x;
   float       y;
   float       z;
} TQ3Point3D;
Field Description
x
The x coordinate (abscissa) of a point.
y
The y coordinate (ordinate) of a point.
z
The z coordinate of a point.

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