Constructor Camera
Camera(Double, Double, Double, Double, Double, Double)
Initializes a new instance of the Camera class.
Declaration
public Camera(double latitude, double longitude, double altitude, double heading, double pitch, double roll)
Parameters
Type | Name | Description |
---|---|---|
Double | latitude | The angular deltaDistance, measured in degrees north or south of the equator. |
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). |
Double | altitude | The distance in meters to the sea level. |
Double | heading | The angle from north in an ENU. |
Double | pitch | The angle of pitch applied to the camera with rotation around the Y-axis in an ENU. The value must be from 0 to 180 and represents the angle applied to the camera when rotating around its Y axis in the East, North, Up (ENU) ground reference frame. 0 is looking straight down towards the center of the earth, 180 looking straight up towards the sky. Negative pitches are not allowed and the values do not wrap around. 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. |
Double | roll | The angle of roll applied to the camera with rotation around the X-axis in an ENU. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Camera(MapPoint, Double, Double, Double)
Initializes a new instance of the Camera class.
Declaration
public Camera(MapPoint locationPoint, double heading, double pitch, double roll)
Parameters
Type | Name | Description |
---|---|---|
MapPoint | locationPoint | The point in space where camera is located. |
Double | heading | The angle from north in an ENU. |
Double | pitch | The angle of pitch applied to the camera with rotation around the Y-axis in an ENU. The value must be from 0 to 180 and represents the angle applied to the camera when rotating around its Y axis in the East, North, Up (ENU) ground reference frame. 0 is looking straight down towards the center of the earth, 180 looking straight up towards the sky. Negative pitches are not allowed and the values do not wrap around. 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. |
Double | roll | The angle of roll applied to the camera with rotation around the X-axis in an ENU. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
Camera(MapPoint, Double, Double, Double, Double)
Initializes a new instance of the Camera class.
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. |
Double | distance | The distance in meters between the lookAtPoint and the camera location. |
Double | heading | The angle from north in an ENU. |
Double | pitch | The angle of pitch applied to the camera with rotation around the Y-axis in an ENU. The value must be from 0 to 180 and represents the angle applied to the camera when rotating around its Y axis in the East, North, Up (ENU) ground reference frame. 0 is looking straight down towards the center of the earth, 180 looking straight up towards the sky. Negative pitches are not allowed and the values do not wrap around. 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. |
Double | roll | The angle of roll applied to the camera with rotation around the X-axis in an ENU. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
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 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.6 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 100.15 |