コード例 #1
0
 /// <summary>
 /// Find the center of the bounding box of a collection of locations
 /// </summary>
 /// <param name="locations"></param>
 /// <returns></returns>
 public static (Location, Location) Extent(PolygonCollection collection)
 {
     return(LocationCollection.Min(collection.Flatten()),
            LocationCollection.Max(collection.Flatten()));
 }
コード例 #2
0
 /// <summary>
 /// Find the center of the bounding box of a collection of locations
 /// </summary>
 /// <param name="locations"></param>
 /// <returns></returns>
 public static Location Center(PolygonCollection collection)
 {
     return(LocationCollection.Center(collection.Flatten()));
 }