CoordinateBoundingBox

CoordinateBoundingBox[coords]

gives the corners {{xmin,ymin,},{xmax,ymax,}} of the bounding box of the region defined by coords.

CoordinateBoundingBox[coords,δ]

pads the region by δ in each direction.

CoordinateBoundingBox[coords,Scaled[s]]

pads by the scaled amount s in each direction.

CoordinateBoundingBox[coords,{p1,p2,}]

pads by p1, p2, in successive dimensions.

CoordinateBoundingBox[coords,{{p1min,p1max},{p2min,p2max},}]

gives {{xmin-p1min,ymin-p2min,},{xmax+p1max,ymax+p2max,},}

Details

Examples

open allclose all

Basic Examples  (1)

Find a bounding box for coordinates in 2 dimensions:

In[1]:=
Click for copyable input
Out[1]=

Pad by 1 in each direction:

In[2]:=
Click for copyable input
Out[2]=

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

In[3]:=
Click for copyable input
Out[3]=

Scope  (1)

Generalizations & Extensions  (1)

Properties & Relations  (2)

See Also

CoordinateBounds  MinMax  GeoBoundingBox

Introduced in 2015
(10.1)