C# Class InTheHand.Devices.Geolocation.BasicGeopositionExtensions

Provides extension methods for BasicGeoposition.
PlatformVersion supported iOSiOS 9.0 and later macOSOS X 10.7 and later tvOStvOS 9.0 and later TizenTizen 3.0 Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later
Exibir arquivo Open project: inthehand/Charming Class Usage Examples

Public Methods

Method Description
GetDistanceTo ( this b, BasicGeoposition other ) : double

Returns the distance between the latitude and longitude coordinates that are specified by this BasicGeoposition and another specified BasicGeoposition.

Private Methods

Method Description
GetDistance ( double thisLatitude, double thisLongitude, double otherLatitude, double otherLongitude ) : double
ToRadians ( double degrees ) : double

Method Details

GetDistanceTo() public static method

Returns the distance between the latitude and longitude coordinates that are specified by this BasicGeoposition and another specified BasicGeoposition.
public static GetDistanceTo ( this b, BasicGeoposition other ) : double
b this
other BasicGeoposition The for the location to calculate the distance to.
return double