MATLAB Function Reference
  Go to function:
    Search    Help Desk 
camlookat    Examples   See Also

Position the camera to view an object or group of objects

Syntax

Description

camlookat(handles) views the objects identified in the vector handles. The vector can contain the handles of Axes children.

camlookat(axes_handle) views the objects that are children of the Axes identified by axes_handle.

camlookat views the objects that are in the current Axes.

Remarks

camlookat moves the camera position and camera target while preserving the relative view direction and camera view angle. The object (or objects) being viewed roughly fill the axes position rectangle.

camlookat sets the Axes CameraPosition and CameraTarget properties.

Examples

This example creates three spheres at different locations and then progressively positions the camera so that each sphere is the object around which the scene is composed:

See Also

campos, camtarget



[ Previous | Help Desk | Next ]