summaryrefslogtreecommitdiff
path: root/gerbonara/aperture_macros/parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/aperture_macros/parse.py')
-rw-r--r--gerbonara/aperture_macros/parse.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gerbonara/aperture_macros/parse.py b/gerbonara/aperture_macros/parse.py
index 1eaa317..448330f 100644
--- a/gerbonara/aperture_macros/parse.py
+++ b/gerbonara/aperture_macros/parse.py
@@ -142,6 +142,12 @@ class ApertureMacro:
primitive.rotation -= rad_to_deg(angle)
return dup
+ def scaled(self, scale):
+ dup = copy.deepcopy(self)
+ for primitive in dup.primitives:
+ primitive.scale(scale)
+ return dup
+
var = VariableExpression
deg_per_rad = 180 / math.pi