({{, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox])[coords] 
gives the corners {{(Subscript[x, min]),(Subscript[y, min]),…},{(Subscript[x, max]),(Subscript[y, max]),…}} of the bounding box of the region defined by coords.}, {, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox])[coords,δ]
pads the region by δ in each direction.}, {, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox])[coords,(RefLink[Scaled, paclet:ref/Scaled])[s]]
pads by the scaled amount s in each direction.}, {, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox])[coords,{(Subscript[p, 1]),(Subscript[p, 2]),…}]
pads by (Subscript[p, 1]), (Subscript[p, 2]), … in successive dimensions. }, {, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox])[coords,{{(Subscript[p, 1min]),(Subscript[p, 1max])},{(Subscript[p, 2min]),(Subscript[p, 2max])},…}]
gives {{(Subscript[x, min])-(Subscript[p, 1min]),(Subscript[y, min])-(Subscript[p, 2min]),…},{(Subscript[x, max])+(Subscript[p, 1max]),(Subscript[y, max])+(Subscript[p, 2max]),…},…} }})

OpenersNotesSection(Spacer1)Details

(RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox]) yields a definite result if all of the coordinates are real numbers.

In other cases, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox]) carries out some simplifications.

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Find a bounding box for coordinates in 2 dimensions:

CoordinateBoundingBox[{{0,1},{1,2},{2,1},{3,2},{4,0}}]

Pad by 1 in each direction:

CoordinateBoundingBox[{{0,1},{1,2},{2,1},{3,2},{4,0}},1]

Pad by 1/4 of the span in each dimension:

CoordinateBoundingBox[{{0,1},{1,2},{2,1},{3,2},{4,0}},Scaled[1/4]]

OpenersExampleSection1(Spacer1)Scope  (1)

Coordinates in 3D of different types at various levels in a list:

coords = {RandomReal[1,{2,3}],{Pi,E,Sqrt[2]},{Exp[2],Log[10000],Csc[1/10]},RandomInteger[{-9,9},{2,2,3}]}

Find the bounding box:

CoordinateBoundingBox[coords]

Pad by 1 in each dimension:

CoordinateBoundingBox[coords,1]

Pad by a fraction of the difference in each dimension:

CoordinateBoundingBox[coords,Scaled[.1]]

Pad by different amounts for different dimensions:

CoordinateBoundingBox[coords,{.1,Scaled[.2],.3}]

Pad the minima and maxima differently:

CoordinateBoundingBox[coords,{0,1}]

OpenersExampleSection2(Spacer1)Generalizations & Extensions  (1)

When there are coordinates that are not numerical, the result is typically expressed in terms of (RefLink[Min, paclet:ref/Min]) and (RefLink[Max, paclet:ref/Max]):

CoordinateBoundingBox[{{1,2},{a,b},{3,2}}]

OpenersExampleSection4(Spacer1)Properties & Relations  (2)

Generally, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox])[coords] is the transpose of (RefLink[CoordinateBounds, paclet:ref/CoordinateBounds])[coords]:

coords = RandomReal[1,{10,5}];

CoordinateBoundingBox[coords]

Transpose[CoordinateBounds[coords]]

For coordinates given in a matrix, (RefLink[CoordinateBoundingBox, paclet:ref/CoordinateBoundingBox])[coords] is equivalent to (RefLink[Transpose, paclet:ref/Transpose])[(RefLink[Map, paclet:ref/Map])[(RefLink[MinMax, paclet:ref/MinMax]),(RefLink[Transpose, paclet:ref/Transpose])[coords]]]:

coords = RandomInteger[7,{12,2}];

CoordinateBoundingBox[coords]

Transpose[Map[MinMax,Transpose[coords]]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CoordinateBounds, paclet:ref/CoordinateBounds])  ▪  (RefLink[MinMax, paclet:ref/MinMax])  ▪  (RefLink[GeoBoundingBox, paclet:ref/GeoBoundingBox])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Regular & Coordinate Arrays, paclet:guide/RegularAndCoordinateArrays])}, {▪(RefLinkPlain[Math & Counting Operations on Lists, paclet:guide/MathematicalAndCountingOperationsOnLists])}})}})