This document is archived and information here might be outdated.  Recommended version.


ICamera.RollAngle Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (3DAnalyst)  

ICamera.RollAngle Property

The roll angle in degrees.

[Visual Basic .NET]
Public Property RollAngle As Double
[C#]
public double RollAngle {get; set;}
[C++]
HRESULT get_RollAngle(
  double* RollAngle
);
[C++]
HRESULT put_RollAngle(
  double RollAngle
);
[C++]

Parameters RollAngle [out, retval] RollAngle is a parameter of type double RollAngle [in] RollAngle is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Remarks

The RollAngle represents the angle, in degrees, of the camera about the line of sight between the observer and target. Angles will be reported in the range >=0 and <360. Angles can be given outside of this range but will be 'wrapped' to the equivalent value in the 0 to 360 range. For example -1 is the equivalent of 359 and 361 is the equivalent of 1.

A RollAngle of 0.0, the default, is straight up relative to the Z axis in the scene. Increasing the RollAngle will tilt the camera clockwise about the line of sight.

See Also

ICamera Interface

.NET Snippets

Toggle Between Surface and Global Navigation Mode

.NET Samples

Globe Fly tool (Code Files: Fly) | Navigating around the GlobeControl (Code Files: Navigation) | Effects in the GlobeControl (Code Files: Effects) | Custom scene navigation commands (Code Files: Fly)