summaryrefslogtreecommitdiff
path: root/gerbonara/utils.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-05 01:29:33 +0200
committerjaseg <git@jaseg.de>2023-04-10 23:57:15 +0200
commitae1f522862099e51472fc70046f913348f49e6f3 (patch)
tree88b604876b53f2ab7f6a313677b935a19fd64bfd /gerbonara/utils.py
parent44ca8349ebfef90b363ea765af44f5d6261778fe (diff)
downloadgerbonara-ae1f522862099e51472fc70046f913348f49e6f3.tar.gz
gerbonara-ae1f522862099e51472fc70046f913348f49e6f3.tar.bz2
gerbonara-ae1f522862099e51472fc70046f913348f49e6f3.zip
Initial protoboard generation working
Diffstat (limited to 'gerbonara/utils.py')
-rw-r--r--gerbonara/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/utils.py b/gerbonara/utils.py
index 32954bd..47fb178 100644
--- a/gerbonara/utils.py
+++ b/gerbonara/utils.py
@@ -528,7 +528,7 @@ def point_in_polygon(point, poly):
def bbox_intersect(a, b):
(xa_min, ya_min), (xa_max, ya_max) = a
- (xb_min, yb_min), (xb_mbx, yb_mbx) = b
+ (xb_min, yb_min), (xb_max, yb_max) = b
x_overlap = not (xa_max < xb_min or xb_max < xa_min)
y_overlap = not (ya_max < yb_min or yb_max < ya_min)