C# Class MundlTransit.WP8.Common.NearestLocationHelpers

Mostra file Open project: christophwille/viennarealtime

Public Methods

Method Description
CalculateDerivedPosition ( Wgs84Location point, double range, double bearing ) : Wgs84Location
GetDistanceBetweenTwoPoints ( Wgs84Location p1, Wgs84Location p2 ) : double
GetDistanceBetweenTwoPoints ( Wgs84Location p1, double p2Lon, double p2Lat ) : double
LocationIsInDistance ( Wgs84Location pointForCheck, Wgs84Location center, double radius ) : bool

Private Methods

Method Description
DegreeToRadian ( double angle ) : double
RadianToDegree ( double angle ) : double

Method Details

CalculateDerivedPosition() public static method

public static CalculateDerivedPosition ( Wgs84Location point, double range, double bearing ) : Wgs84Location
point MundlTransit.WP8.Model.Wgs84Location
range double
bearing double
return MundlTransit.WP8.Model.Wgs84Location

GetDistanceBetweenTwoPoints() public static method

public static GetDistanceBetweenTwoPoints ( Wgs84Location p1, Wgs84Location p2 ) : double
p1 MundlTransit.WP8.Model.Wgs84Location
p2 MundlTransit.WP8.Model.Wgs84Location
return double

GetDistanceBetweenTwoPoints() public static method

public static GetDistanceBetweenTwoPoints ( Wgs84Location p1, double p2Lon, double p2Lat ) : double
p1 MundlTransit.WP8.Model.Wgs84Location
p2Lon double
p2Lat double
return double

LocationIsInDistance() public static method

public static LocationIsInDistance ( Wgs84Location pointForCheck, Wgs84Location center, double radius ) : bool
pointForCheck MundlTransit.WP8.Model.Wgs84Location
center MundlTransit.WP8.Model.Wgs84Location
radius double
return bool