camheading
Description
camheading(
sets the heading angle of the camera for the specified Site Viewer. Setting the heading
angle rotates the camera to the left or right. For more information about how camera
rotations affect your view of the Site Viewer, see How Camera Orientation Affects View.viewer
,heading
)
camheading(
displays the heading angle
of the camera.viewer
)
returns the heading angle of the camera. You can return the heading angle using any of the
input argument combinations from the previous syntaxes.headingOut
= camheading(___)
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®.