Bounding Boxes

class discopygal.geometry_utils.bounding_boxes.BoundingBox(min_x, max_x, min_y, max_y)
max_x

Alias for field number 1

max_y

Alias for field number 3

min_x

Alias for field number 0

min_y

Alias for field number 2

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)