fix mirroring across y for arcs and ellipses

lethe/HEAD
Jan Petykiewicz 4 years ago
parent 177f9952a5
commit b7383a30ca

@ -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

@ -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':

Loading…
Cancel
Save