Main Content

camheading

R2026b

Set or get camera heading angle

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    camheading(v,heading) sets the camera heading angle for viewer v. Setting the heading angle shifts the camera left or right. For more information about how camera rotations affect your view of the globe, see How Camera Orientation Affects Globe View.

    Camera with double-headed arrow in front of lens, pointing left and right

    headingOut = camheading(v,heading) sets the camera heading angle and returns it.

    headingOut = camheading(v) gets the current camera heading angle for viewer v.

    Input Arguments

    collapse all

    Viewer, specified as a GlobeViewer object.

    Camera heading angle, in degrees, specified as a numeric scalar in the range [–360, 360].

    Data Types: double

    Output Arguments

    collapse all

    Camera heading angle, in degrees, returned as a numeric scalar.

    More About

    collapse all

    Version History

    Introduced in R2026b

    See Also

    Objects

    Functions