20 Data Structures

20 Bounding Boxes

A bounding box is a rectangular box, aligned with the coordinate axes, that completely encloses an object. A bounding box is defined by the TQ3BoundingBox data type.

typedef struct TQ3BoundingBox {
 TQ3Point3D          min;
 TQ3Point3D          max;
 TQ3Boolean         isEmpty;
} TQ3BoundingBox;
min The lower-left corner of the bounding box.
max The upper-right corner of the bounding box.
isEmpty A Boolean value that specifies whether the bounding box is empty (kQ3True) or not (kQ3False). If this field contains the value kQ3True, the other field of this structure are invalid.

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