Fix rotation tests
This commit is contained in:
parent
5885b60f14
commit
f09ef6f117
2 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ class GerberObject:
|
|||
|
||||
def rotate(self, rotation, cx=0, cy=0, unit='mm'):
|
||||
cx, cy = self._conv(cx, unit), self._conv(cy, unit)
|
||||
return self._rotate(cx, cy)
|
||||
self._rotate(rotation, cx, cy)
|
||||
|
||||
def bounding_box(self, unit=None):
|
||||
bboxes = [ p.bounding_box for p in self.to_primitives(unit) ]
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ def points_close(a, b):
|
|||
else:
|
||||
return math.isclose(a[0], b[0]) and math.isclose(a[1], b[1])
|
||||
|
||||
def Tag:
|
||||
class Tag:
|
||||
def __init__(self, name, children=None, **attrs):
|
||||
self.name, self.children, self.attrs = name, children, attrs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue