20 Data Structures

20 Bounding Spheres

A bounding sphere is a sphere that completely encloses an object. A bounding sphere is defined by the TQ3BoundingSphere data type.

typedef struct TQ3BoundingSphere {
 TQ3Point3D         origin;
 float         radius;
 TQ3Boolean         isEmpty;
} TQ3BoundingSphere;
origin The origin of the bounding sphere.
radius The radius of the bounding sphere; all points making up the bounding sphere are this far away from the origin of the sphere.
isEmpty A Boolean value that specifies whether the bounding sphere 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