Документация Engee

Bounding box

Страница в процессе перевода.

boundingbox(object)

Axis-aligned bounding box of object.

pset = PointSet(rand(Point, 100, crs=Cartesian2D))
bbox = boundingbox(pset)

fig = Mke.Figure(size = (800, 400))
viz(fig[1,1], bbox)
viz!(fig[1,1], pset, color = :black)
fig
wVsdddXt1lEEgAAAABJRU5ErkJggg==
box  = Box((-1, -1), (0, 0))
ball = Ball((0, 0), (1))
gset = GeometrySet([box, ball])
bbox = boundingbox(gset)

fig = Mke.Figure(size = (800, 400))
viz(fig[1,1], bbox)
viz!(fig[1,1], boundary(box), color = :gray)
viz!(fig[1,1], boundary(ball), color = :gray)
fig
4fv0tDco74yBQAAAAASUVORK5CYII=