9 Data Structures

9 Aspect Ratio Camera Data Structure

You use an aspect ratio camera data structure to get or set information about an aspect ratio camera. An aspect ratio camera data structure is defined by the TQ3ViewAngleAspectCameraData data type.

typedef struct TQ3ViewAngleAspectCameraData {
 TQ3CameraData         cameraData;
 float         fov;
 float         aspectRatioXToY;
} TQ3ViewAngleAspectCameraData;
cameraData A camera data structure specifying basic information about the aspect ratio camera.
fov The camera's maximum field of view. This parameter should contain a positive floating-point value specified in radians. If the value in the aspectRatioXToY field is greater than 1.0, the field of view is vertical; if the value in the aspectRatioXToY field is less than 1.0, the field of view is horizontal.
aspectRatioXToY The camera's horizontal-to-vertical aspect ratio. To avoid distortion, this ratio should be the same as the ratio of the width to the height of the camera's view port.

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