c# Programming Glossary: dlon
Geographic Midpoint between two coordinates http://stackoverflow.com/questions/4164830/geographic-midpoint-between-two-coordinates posB Geocoordinate midPoint new Geocoordinate double dLon DegreesToRadians posB.Longitude posA.Longitude double Bx Math.Cos.. double Bx Math.Cos DegreesToRadians posB.Latitude Math.Cos dLon double By Math.Cos DegreesToRadians posB.Latitude Math.Sin dLon.. double By Math.Cos DegreesToRadians posB.Latitude Math.Sin dLon midPoint.Latitude RadiansToDegrees Math.Atan2 Math.Sin DegreesToRadians..
Calculate distance of two geo points in km c# http://stackoverflow.com/questions/6544286/calculate-distance-of-two-geo-points-in-km-c-sharp double R 6371 km double dLat Radians lat2 lat1 double dLon Radians lon2 lon1 lat1 Radians lat1 lat2 Radians lat2 double.. lat2 double a Math.Sin dLat 2 Math.Sin dLat 2 Math.Sin dLon 2 Math.Sin dLon 2 Math.Cos lat1 Math.Cos lat2 double c 2 Math.Atan2.. a Math.Sin dLat 2 Math.Sin dLat 2 Math.Sin dLon 2 Math.Sin dLon 2 Math.Cos lat1 Math.Cos lat2 double c 2 Math.Atan2 Math.Sqrt..
|