9 Data Structures

9 Camera Placement Structure

You use a camera placement structure to get or set information about the location and orientation of a camera. A camera placement structure is defined by the TQ3CameraPlacement data type.

typedef struct TQ3CameraPlacement {
 TQ3Point3D         cameraLocation;
 TQ3Point3D         pointOfInterest;
 TQ3Vector3D         upVector;
} TQ3CameraPlacement;
cameraLocation The location of the camera, in world-space coordinates.
pointOfInterest The camera's point of interest (that is, the point at which the camera is aimed), in world-space coordinates.
upVector The up-vector of the camera. A camera's up-vector specifies the orientation of the camera. This vector must be normalized and perpendicular to the viewing direction. The up-vector of a camera is mapped to the y axis of the view plane.

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