23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

campan<br />

2campan<br />

Purpose Rotate the camera target around the camera position<br />

Syntax campan(dtheta,dphi)<br />

campan(dtheta,dphi,'coordsys')<br />

campan(dtheta,dphi,'coordsys','direction')<br />

campan(axes_handle,...)<br />

Description campan(dtheta,dphi) rotates the camera target around the camera position<br />

by the amounts specified in dtheta and dphi (both in degrees). dtheta is the<br />

horizontal rotation and dphi is the vertical rotation.<br />

2-196<br />

campan(dtheta,dphi,'coordsys') The coordsys argument determines the<br />

center of rotation. It can take on two values:<br />

• data (default) – rotate the camera target around an axis defined by the<br />

camera position and the direction (default is the positive z direction)<br />

• camera – rotate the camera about the point defined by the camera target.<br />

campan(dtheta,dphi,'coordsys','direction') The direction argument,<br />

in conjunction with the camera position, defines the axis of rotation for the data<br />

coordinate system. Specify direction as a three-element vector containing the<br />

x, y, and z-components of the direction or one of the characters, x, y, or z, to<br />

indicate [1 0 0], [0 1 0], or [0 0 1] respectively.<br />

campan(axes_handle,...) operates on the axes identified by the first<br />

argument, axes_handle. When you do not specify an axes handle, campan<br />

operates on the current axes.<br />

See Also axes, camdolly, camorbit, camtarget, camzoom, camroll

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!