Ejemplo n.º 1
0
 /// <summary>
 /// Expands the BoundingBox to include the specified coordinates.
 /// </summary>
 /// <param name="bounds">A collection of coordinates to expand the box with.</param>
 /// <param name="box">The BoundingBox to expand.</param>
 internal static void ExpandBox(IBoundsInformation bounds, BoundingBox box)
 {
     if (bounds != null)
     {
         foreach (var coord in bounds.Coordinates)
         {
             box.Expand(coord.Latitude, coord.Longitude);
         }
     }
 }
 /// <summary>
 /// Expands the BoundingBox to include the specified coordinates.
 /// </summary>
 /// <param name="bounds">A collection of coordinates to expand the box with.</param>
 /// <param name="box">The BoundingBox to expand.</param>
 internal static void ExpandBox(IBoundsInformation bounds, BoundingBox box)
 {
     if (bounds != null)
     {
         foreach (var coord in bounds.Coordinates)
         {
             box.Expand(coord.Latitude, coord.Longitude);
         }
     }
 }