Set or get pitch angle of camera for satellite scenario viewer
Set Camera Pitch Angle of Satellite Scenario Viewer
Create a satellite scenario object.
sc = satelliteScenario;
Launch the Satellite Scenario Viewer.
v = satelliteScenarioViewer(sc);
Set the pitch angle of the camera in the Satellite Scenario Viewer to -60 degrees.
pitch = -60; % degrees campitch(v,pitch);
pitch — Pitch angle of camera
scalar the in the range [–90, 90]
Pitch angle of the camera, specified as a scalar the in the range [–90, 90] degrees. By default, the pitch angle is –90 degrees, which means that camera points directly toward the surface of the globe.
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
camheadingfunction instead of the
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®.