4 Data Structures

4 Points

QuickDraw3D 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 QuickDraw3D 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;
x The x coordinate (abscissa) of a point.
y The y coordinate (ordinate) of a point.
z The z coordinate of a point.

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