summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/graphic_primitives.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-16 21:59:24 +0100
committerjaseg <git@jaseg.de>2022-01-16 21:59:24 +0100
commit336a18fb493c79824323a59865083a0037a4a2f4 (patch)
tree3e1e0db5f821cf52c32f70a4b38fac77c5a99c8c /gerbonara/gerber/graphic_primitives.py
parentd644661fb04d40a3e95dd604f8cc13641bab263b (diff)
downloadgerbonara-336a18fb493c79824323a59865083a0037a4a2f4.tar.gz
gerbonara-336a18fb493c79824323a59865083a0037a4a2f4.tar.bz2
gerbonara-336a18fb493c79824323a59865083a0037a4a2f4.zip
Excellon WIP
Diffstat (limited to 'gerbonara/gerber/graphic_primitives.py')
-rw-r--r--gerbonara/gerber/graphic_primitives.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gerbonara/gerber/graphic_primitives.py b/gerbonara/gerber/graphic_primitives.py
index 1b9f09b..83b216e 100644
--- a/gerbonara/gerber/graphic_primitives.py
+++ b/gerbonara/gerber/graphic_primitives.py
@@ -164,6 +164,7 @@ def arc_bounds(x1, y1, x2, y2, cx, cy, clockwise):
return (min_x+cx, min_y+cy), (max_x+cx, max_y+cy)
+# FIXME use math.dist instead
def point_distance(a, b):
return math.sqrt((b[0] - a[0])**2 + (b[1] - a[1])**2)