4 Data Structures

4 Rays

QuickDraw3D defines a ray as a point of origin and a direction. A ray is defined by the TQ3Ray3D data type. Figure 4-9 shows a ray.

Figure 4-9 A ray

typedef struct TQ3Ray3D {
 TQ3Point3D         origin;
 TQ3Vector3D         direction;
} TQ3Ray3D;
origin The origin of the ray.
direction The direction of the ray.

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