Merge
This commit is contained in:
commit
c8e14ab2b5
@ -12,7 +12,7 @@ def make_box(x1, y1, x2, y2):
|
|||||||
return dict(zip(keys, [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())
|
a = Rectangle(*a.values())
|
||||||
b = Rectangle(*b.values())
|
b = Rectangle(*b.values())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user