CoordinateBoundingBox
CoordinateBoundingBox({{x1,y1,...},{x2,y2,...},{x3,y3,...},...})
calculate the bounding box of the points
{{x1,y1,...},{x2,y2,...},{x3,y3,...},...}
.
CoordinateBoundingBox({{x1,y1,...},{x2,y2,...},{x3,y3,...},...}, pad)
add a pad to the calculated bounding box of the points
{{x1,y1,...},{x2,y2,...},{x3,y3,...},...}
.
Examples
>> CoordinateBoundingBox({{0, 1}, {2, 3}, {3,4}, {2, 3}, {1,1}}){{0,1},{3,4}}
>> CoordinateBoundingBox({{a,b,u}, {c,d,v}, {e,f,w}},Scaled(1/4)){{Min(a,c,e)+1/4*(-Max(a,c,e)+Min(a,c,e)),Min(b,d,f)+1/4*(-Max(b,d,f)+Min(b,d,f)),Min(u,v,w)+1/4*(-Max(u,v,w)+Min(u,v,w))},{Max(a,c,e)+1/4*(Max(a,c,e)-Min(a,c,e)),Max(b,d,f)+1/4*(Max(b,d,f)-Min(b,d,f)),Max(u,v,w)+1/4*(Max(u,v,w)-Min(u,v,w))}}
Implementation status
- ✅ - full supported