Contenu principal

camroll

R2026b

Set or get camera roll angle

Since R2026b

    Description

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

    camroll(v,roll) sets the camera roll angle for viewer v. Setting the roll angle rotates the camera around its lens. 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 around lens

    rollOut = camroll(v,roll) sets the camera roll angle and returns it.

    rollOut = camroll(v) gets the current camera roll angle for viewer v.

    Input Arguments

    collapse all

    Viewer, specified as a GlobeViewer object.

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

    Data Types: double

    Output Arguments

    collapse all

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

    More About

    collapse all

    Version History

    Introduced in R2026b

    See Also

    Objects

    Functions