camheading
Description
returns the heading angle of the camera. If the second input is
outHeading
= camheading(viewer
,___)heading
, then the function sets the output equal to the input
heading.
Examples
Input Arguments
Output Arguments
Tips
When the pitch angle is near –90 (the default value) 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 thecamroll
function.
Version History
Introduced in R2021a
See Also
Objects
Functions
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®.