summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/panelize
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-11-08 13:06:23 +0100
committerjaseg <git@jaseg.de>2021-11-08 13:06:23 +0100
commit125eb821b9f5d4c58b17d43e318e9a6829120d03 (patch)
tree6564a0c275e8ddb256e1198a2af00c7c4b348182 /gerbonara/gerber/panelize
parent5aa184757e4fb5c2fc141c41aed2fccc0c96ce7e (diff)
downloadgerbonara-125eb821b9f5d4c58b17d43e318e9a6829120d03.tar.gz
gerbonara-125eb821b9f5d4c58b17d43e318e9a6829120d03.tar.bz2
gerbonara-125eb821b9f5d4c58b17d43e318e9a6829120d03.zip
Parser half-refactored
Diffstat (limited to 'gerbonara/gerber/panelize')
-rw-r--r--gerbonara/gerber/panelize/__init__.py7
-rw-r--r--gerbonara/gerber/panelize/utility.py8
2 files changed, 0 insertions, 15 deletions
diff --git a/gerbonara/gerber/panelize/__init__.py b/gerbonara/gerber/panelize/__init__.py
deleted file mode 100644
index 7185aea..0000000
--- a/gerbonara/gerber/panelize/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-# Copyright 2019 Hiroshi Murayama <opiopan@gmail.com>
-
-from .composition import GerberComposition, DrillComposition
-# from .dxf import DxfFile
diff --git a/gerbonara/gerber/panelize/utility.py b/gerbonara/gerber/panelize/utility.py
index fc44e79..0d57979 100644
--- a/gerbonara/gerber/panelize/utility.py
+++ b/gerbonara/gerber/panelize/utility.py
@@ -5,14 +5,6 @@
from math import cos, sin, pi, sqrt
-# TODO: replace with ..utils.rotate
-#def rotate(x, y, angle, center):
-# x0 = x - center[0]
-# y0 = y - center[1]
-# angle = angle * pi / 180.0
-# return (cos(angle) * x0 - sin(angle) * y0 + center[0],
-# sin(angle) * x0 + cos(angle) * y0 + center[1])
-
def is_equal_value(a, b, error_range=0):
return (a - b) * (a - b) <= error_range * error_range