Contenuto principale

campitch

R2026b

Set or get camera pitch angle

Since R2026b

    Description

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

    campitch(v,pitch) sets the camera pitch angle for viewer v. Setting the pitch angle tilts the camera up or down. 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 up and down

    pitchOut = campitch(v,pitch) sets the camera pitch angle and returns it.

    pitchOut = campitch(v) gets the current camera pitch angle for viewer v.

    Input Arguments

    collapse all

    Viewer, specified as a GlobeViewer object.

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

    Data Types: double

    Output Arguments

    collapse all

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

    More About

    collapse all

    Version History

    Introduced in R2026b

    See Also

    Objects

    Functions