Example #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();
 }
Example #2
0
        /// <summary>
        /// Calculates maximum geographic location from two geographic location
        /// </summary>
        public static GeoLocation Max(GeoLocation location1, GeoLocation location2)
        {
            var location = location1.Max(location2);

            return(location);
        }