diff options
author | jaseg <git@jaseg.de> | 2023-02-23 23:52:29 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-02-23 23:52:29 +0100 |
commit | d43eff8b49022719b2933e8429a05e3a35b8762f (patch) | |
tree | 49216eca4fe9f42e9a4f1b3f35825e98a2fa5005 /gerbonara/rs274x.py | |
parent | 70179a4178d6574182cbc80de211a933b79ffa8a (diff) | |
download | gerbonara-d43eff8b49022719b2933e8429a05e3a35b8762f.tar.gz gerbonara-d43eff8b49022719b2933e8429a05e3a35b8762f.tar.bz2 gerbonara-d43eff8b49022719b2933e8429a05e3a35b8762f.zip |
Extend CLI tests
Diffstat (limited to 'gerbonara/rs274x.py')
-rw-r--r-- | gerbonara/rs274x.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py index 8c6d9ae..062f246 100644 --- a/gerbonara/rs274x.py +++ b/gerbonara/rs274x.py @@ -292,7 +292,7 @@ class GerberFile(CamFile): for obj in self.objects: obj.offset(dx, dy, unit) - def rotate(self, angle:'radian', center=(0,0), unit=MM): + def rotate(self, angle:'radian', cx=0, cy=0, unit=MM): if math.isclose(angle % (2*math.pi), 0): return @@ -302,7 +302,7 @@ class GerberFile(CamFile): ap.rotation += angle for obj in self.objects: - obj.rotate(angle, *center, unit) + obj.rotate(angle, cx, cy, unit) def invert_polarity(self): """ Invert the polarity (color) of each object in this file. """ |