This document is archived and information here might be outdated. Recommended version. |
Converts a point in device coordinates (typically pixels) to coordinates in latitude and longitude.
[Visual Basic .NET]
Public Function GetSurfacePoint ( _
ByVal x As Integer, _
ByVal y As Integer, _
ByRef longitude As Double, _
ByRef latitude As Double, _
ByRef elev As Double _
) As Boolean
[C#]
public bool GetSurfacePoint (
int x,
int y,
ref double longitude,
ref double latitude,
ref double elev
);
Given a screen coordinate in pixels, this method returns the longitude and latitude of the point on the ARGlobe surface at the screen X and Y location. It also returns the elevation of the globe surface at that point.
Latitude and longitude are measured in decimal degrees. Elevation is measured in Kilometers.