fix mirroring across y for arcs and ellipses

This commit is contained in:
Jan Petykiewicz 2020-12-05 14:49:57 -08:00
parent 177f9952a5
commit b7383a30ca
2 changed files with 2 additions and 0 deletions

View File

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

View File

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