Exemple #1
0
 /// <summary>
 /// Creates a GeoRegion from south-west geo-location and north-east geo-location
 /// </summary>
 public GeoRegion(GeoLocation origin, GeoLocation ending)
 {
     _origins = GeoLocation.Min(origin, ending);
     _ending  = GeoLocation.Max(origin, ending);
     this.UpdateSize();
     this.UpdateCenter();
 }
Exemple #2
0
        /// <summary>
        /// Calculates minimum geographic location from two geographic location
        /// </summary>
        public static GeoLocation Min(GeoLocation location1, GeoLocation location2)
        {
            var location = location1.Min(location2);

            return(location);
        }