Main Content

camroll

Rotate camera about view axis

Syntax

camroll(dtheta)
camroll(ax,dtheta)

Description

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

camroll(ax,dtheta)operates on the axes identified by the first argument,ax。当你不指定一个坐标轴对象,camrolloperates on the current axes.

camrollsets the axesCameraUpVectorproperty and also sets theCameraUpVectorModeproperty tomanual

Examples

崩溃all

Rotate the camera around the viewing axis.

surf(peaks) axisvis3dfori = 1:36 camroll(10) drawnowend

Introduced before R2006a