/// <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())); }
/// <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())); }