Bounding Boxes

discopygal.geometry_utils.bounding_boxes.calc_scene_bounding_box(scene: Scene)

Get a DiscoPygal scene and compute its bounding box. The bounding box is computed as the smallest axis-aligned box that contains all the obstacles and robots.

Parameters:

scene (Scene) – scene

Returns:

min_x, max_x, min_y, max_y [bounds of the scene]

Return type:

(FT, FT, FT, FT)