camroll
Description
camroll(
sets
the roll angle of the camera for the specified Site Viewer. Setting the roll angle rotates
the camera around its lens. For more information about how camera rotations affect your view
of the Site Viewer, see How Camera Orientation Affects View.viewer
,roll
)
This function requires the CoordinateSystem
property of the Site
Viewer object to be "geographic"
.
camroll(
displays the roll 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®.