public AVGeoPoint(double latitude, double longitude) { AVGeoPoint aVGeoPoint = new AVGeoPoint() { Latitude = latitude, Longitude = longitude }; this = aVGeoPoint; }
public AVGeoDistance DistanceTo(AVGeoPoint point) { double num = 0.0174532925199433; double latitude = this.Latitude * num; double num1 = this.longitude * num; double latitude1 = point.Latitude * num; double longitude = point.Longitude * num; double num2 = latitude - latitude1; double num3 = num1 - longitude; double num4 = Math.Sin(num2 / 2); double num5 = Math.Sin(num3 / 2); double num6 = num4 * num4 + Math.Cos(latitude) * Math.Cos(latitude1) * num5 * num5; num6 = Math.Min(1, num6); return new AVGeoDistance(2 * Math.Asin(Math.Sqrt(num6))); }
public AVIMLocationMessage(AVGeoPoint avGeoPoint) { this.GeoPoint = avGeoPoint; }