From b7383a30ca33f0d6d352be4d95d12ff84f7827d2 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 5 Dec 2020 14:49:57 -0800 Subject: [PATCH] fix mirroring across y for arcs and ellipses --- masque/shapes/arc.py | 1 + masque/shapes/ellipse.py | 1 + 2 files changed, 2 insertions(+) diff --git a/masque/shapes/arc.py b/masque/shapes/arc.py index 0416d01..b12113c 100644 --- a/masque/shapes/arc.py +++ b/masque/shapes/arc.py @@ -326,6 +326,7 @@ class Arc(Shape, metaclass=AutoSlots): def mirror(self, axis: int) -> 'Arc': self.offset[axis - 1] *= -1 self.rotation *= -1 + self.rotation += axis * pi self.angles *= -1 return self diff --git a/masque/shapes/ellipse.py b/masque/shapes/ellipse.py index 140f590..f9aefbf 100644 --- a/masque/shapes/ellipse.py +++ b/masque/shapes/ellipse.py @@ -183,6 +183,7 @@ class Ellipse(Shape, metaclass=AutoSlots): def mirror(self, axis: int) -> 'Ellipse': self.offset[axis - 1] *= -1 self.rotation *= -1 + self.rotation += axis * pi return self def scale_by(self, c: float) -> 'Ellipse':