campitch
Description
campitch(
sets the pitch angle of the camera for the specified Site Viewer. Setting the pitch angle
tilts the camera up or down. For more information about how camera rotations affect your
view of the Site Viewer, see How Camera Orientation Affects View.viewer
,pitch
)
campitch(
displays the pitch angle of
the camera.viewer
)
Examples
Input Arguments
Output Arguments
More About
Tips
When the pitch angle is near –90 or 90 degrees, the camera loses one rotational degree of
freedom. As a result, when you change the roll angle, the heading angle might change instead.
This phenomenon is called gimbal lock. To avoid the effects of gimbal
lock, call the camheading
function instead of the
camroll
function.
Version History
Introduced in R2025a
1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.