This commit is contained in:
Matthias Bisping 2022-02-04 17:47:08 +01:00
commit c8e14ab2b5

View File

@ -12,7 +12,7 @@ def make_box(x1, y1, x2, y2):
return dict(zip(keys, [x1, y1, x2, y2]))
def compute_intersection(a, b): # returns None if rectangles don't intersect
def compute_intersection(a, b):
a = Rectangle(*a.values())
b = Rectangle(*b.values())