summaryrefslogtreecommitdiff
path: root/gerbonara/apertures.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-29 11:28:38 +0200
committerjaseg <git@jaseg.de>2023-04-29 11:28:38 +0200
commit8d5403260b72115cfd9f401289dfd0f894e272ea (patch)
tree0f7ac51c4072477018fec6f8d153d00365735f34 /gerbonara/apertures.py
parent778e81974580d910eac5e3f977acf79744d3e085 (diff)
downloadgerbonara-8d5403260b72115cfd9f401289dfd0f894e272ea.tar.gz
gerbonara-8d5403260b72115cfd9f401289dfd0f894e272ea.tar.bz2
gerbonara-8d5403260b72115cfd9f401289dfd0f894e272ea.zip
Fix aperture macro rotation issue and add missing data files
Diffstat (limited to 'gerbonara/apertures.py')
-rw-r--r--gerbonara/apertures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/apertures.py b/gerbonara/apertures.py
index 512b4dd..d901765 100644
--- a/gerbonara/apertures.py
+++ b/gerbonara/apertures.py
@@ -421,13 +421,13 @@ class ApertureMacroInstance(Aperture):
return replace(self, macro=self.macro.dilated(offset, unit))
@lru_cache()
- def rotated(self, angle=0):
+ def rotated(self, angle=0.0):
if math.isclose(angle % (2*math.pi), 0):
return self
else:
return self.to_macro(angle)
- def to_macro(self, rotation=0):
+ def to_macro(self, rotation=0.0):
return replace(self, macro=self.macro.rotated(rotation))
def scaled(self, scale):