12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

campanPurpose2campanRotate the camera target around the camera positionSyntaxDescriptioncampan(dtheta,dphi)campan(dtheta,dphi,'coordsys')campan(dtheta,dphi,'coordsys','direction')campan(axes_handle,...)campan(dtheta,dphi) rotates the camera target around the camera positionby the amounts specified in dtheta and dphi (both in degrees). dtheta is thehorizontal rotation and dphi is the vertical rotation.campan(dtheta,dphi,'coordsys') The coordsys argument determines thecenter of rotation. It can take on two values:• data (default) – rotate the camera target around an axis defined by thecamera position and the direction (default is the positive z direction)• camera – rotate the camera about the point defined by the camera target.campan(dtheta,dphi,'coordsys','direction') The direction argument,in conjunction with the camera position, defines the axis of rotation for the datacoordinate system. Specify direction as a three-element vector containing thex, y, and z-components of the direction or one of the characters, x, y, or z, toindicate [1 0 0], [0 1 0], or [0 0 1] respectively.campan(axes_handle,...) operates on the axes identified by the firstargument, axes_handle. When you do not specify an axes handle, campanoperates on the current axes.See Alsoaxes, camdolly, camorbit, camtarget, camzoom, camroll2-59

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

Saved successfully!

Ooh no, something went wrong!