MATLAB Function Reference Previous page   Next Page

Rotate the camera about the view axis



camroll(dtheta) rotates the camera around the camera viewing axis by the amounts specified in dtheta (in degrees). The viewing axis is defined by the line passing through the camera position and the camera target.

camroll(axes_handle,dtheta) operates on the axes identified by the first argument, axes_handle. When you do not specify an axes handle, camroll operates on the current axes.


camroll sets the axes CameraUpVector property and thereby also sets the CameraUpVectorMode property to manual.

See Also

axes, axis('vis3d'), camdolly, camorbit, camzoom, campan

Controlling the Camera Viewpoint for related functions

Defining Scenes with Camera Graphics for more information

Previous page  camproj camtarget Next page

© 1994-2005 The MathWorks, Inc.