campan

Rotates the camera target around the camera position.

Category: Graphics > Formatting and Annotation

Syntax

campan(dtheta, dphi)

Pans the view by dtheta degrees horizontally and dphi degrees vertically.

Description

This is the opposite of camorbit: the camera stays where it is and turns, like a person looking around, so the target moves.

Input arguments

dtheta
Horizontal rotation in degrees.
dphi
Vertical rotation in degrees.

Example

Looking to the side

surf(peaks(20))
campan(10, 0)

In the app, the figure is drawn below the code.

See also

camorbit camtarget camdolly campos