Constructor Camera
Camera(Double, Double, Double, Double, Double, Double)
Initializes a new instance of the Camera class with the specified latitude, longitude, altitude, heading, pitch, and roll.
Declaration
public Camera(double latitude, double longitude, double altitude, double heading, double pitch, double roll)
Parameters
Type | Name | Description |
---|---|---|
System.Double | latitude | The angular deltaDistance, measured in degrees north or south of the equator. |
System.Double | longitude | The angular deltaDistance, usually expressed in degrees, minutes, and seconds, of the location of a point on the earth's surface east or west of an arbitrarily defined meridian (usually the Greenwich prime meridian). |
System.Double | altitude | The altitude of the camera position in meters. If the altitude is below the BaseSurface and the NavigationConstraint is set to StayAbove, the camera will be located at the Surface. Note: that the default is StayAbove. |
System.Double | heading | The angle around the z-axis the camera is rotated. The angle is clockwise from north in the East, North, Up (ENU) ground reference frame. The value is between 0 to 360. 0 is looking North and 90 is looking East. Values are wrapped around so that they fall within 0 to 360. |
System.Double | pitch | The angle around the y-axis the camera is rotated in the East, North, Up (ENU) ground reference frame. The value is between 0 to 180. 0 is looking straight down and 180 is looking straight up. A negative value defaults to 0 and a value greater than 180 defaults to 180. If the behavior of a negative pitch is required, then the corresponding transformation with positive pitch can be set instead. For example, if heading:0 pitch:-20 roll:0 is required then heading:180 pitch:20 roll:180 can be used instead. |
System.Double | roll | The angle around the x-axis the camera is rotated in the East, North, Up (ENU) ground reference frame. The value is between 0 to 360. 0 is horizontal, 180 is upside down. Values are wrapped so that they fall within 0 to 360. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
Relevant samples
Camera(MapPoint, Double, Double, Double)
Initializes a new instance of the Camera class with the specified location, heading, pitch, and roll.
Declaration
public Camera(MapPoint locationPoint, double heading, double pitch, double roll)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | locationPoint | A point geometry containing the location and altitude at which to place the camera. If the altitude is below the BaseSurface and the NavigationConstraint is set to StayAbove, the camera will be located at the Surface. Note: that the default is StayAbove. If the point has a spatial reference, the point projects to WGS84. Otherwise, a point spatial reference of WGS84 is assumed. |
System.Double | heading | The angle around the z-axis the camera is rotated. The angle is clockwise from north in the East, North, Up (ENU) ground reference frame. The value is between 0 to 360. 0 is looking North and 90 is looking East. Values are wrapped around so that they fall within 0 to 360. |
System.Double | pitch | The angle around the y-axis the camera is rotated in the East, North, Up (ENU) ground reference frame. The value is between 0 to 180. 0 is looking straight down and 180 is looking straight up. A negative value defaults to 0 and a value greater than 180 defaults to 180. If the behavior of a negative pitch is required, then the corresponding transformation with positive pitch can be set instead. For example, if heading:0 pitch:-20 roll:0 is required then heading:180 pitch:20 roll:180 can be used instead. |
System.Double | roll | The angle around the x-axis the camera is rotated in the East, North, Up (ENU) ground reference frame. The value is between 0 to 360. 0 is horizontal, 180 is upside down. Values are wrapped so that they fall within 0 to 360. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
Relevant samples
Camera(MapPoint, Double, Double, Double, Double)
Initializes a new instance of the Camera class based on a point to look at, the distance to this point, heading, pitch, and roll.
Declaration
public Camera(MapPoint lookAtPoint, double distance, double heading, double pitch, double roll)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | lookAtPoint | The point in space the camera will be pointing at. |
System.Double | distance | The distance in meters between the lookAtPoint and the camera location. |
System.Double | heading | The angle around the z-axis the camera is rotated. The angle is clockwise from north in the East, North, Up (ENU) ground reference frame. The value is between 0 to 360. 0 is looking North and 90 is looking East. Values are wrapped around so that they fall within 0 to 360. |
System.Double | pitch | The angle around the y-axis the camera is rotated in the East, North, Up (ENU) ground reference frame. The value is between 0 to 180. 0 is looking straight down and 180 is looking straight up. A negative value defaults to 0 and a value greater than 180 defaults to 180. If the behavior of a negative pitch is required, then the corresponding transformation with positive pitch can be set instead. For example, if heading:0 pitch:-20 roll:0 is required then heading:180 pitch:20 roll:180 can be used instead. |
System.Double | roll | The angle around the x-axis the camera is rotated in the East, North, Up (ENU) ground reference frame. The value is between 0 to 360. 0 is horizontal, 180 is upside down. Values are wrapped so that they fall within 0 to 360. |
Remarks
Note: the given values may mean that the point is not visible on screen. You can check its visibility using Esri.ArcGISRuntime.UI.Controls.SceneView.LocationToScreen(MapPoint).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
Relevant samples
Camera(TransformationMatrix)
Initializes a new instance of the Camera class using a transformation matrix.
Declaration
public Camera(TransformationMatrix transformation)
Parameters
Type | Name | Description |
---|---|---|
TransformationMatrix | transformation | The transformation matrix used to create the camera. |
Remarks
The transformation
describes the camera's location and the direction it is looking.
Using this constructor with the location provided by ARKit/ARCore is necessary for enabling augmented reality.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.6 - 200.5 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 200.5 |