fix mirroring across y for arcs and ellipses
This commit is contained in:
parent
177f9952a5
commit
b7383a30ca
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue