fix mirroring across y for arcs and ellipses
This commit is contained in:
parent
177f9952a5
commit
b7383a30ca
@ -326,6 +326,7 @@ class Arc(Shape, metaclass=AutoSlots):
|
|||||||
def mirror(self, axis: int) -> 'Arc':
|
def mirror(self, axis: int) -> 'Arc':
|
||||||
self.offset[axis - 1] *= -1
|
self.offset[axis - 1] *= -1
|
||||||
self.rotation *= -1
|
self.rotation *= -1
|
||||||
|
self.rotation += axis * pi
|
||||||
self.angles *= -1
|
self.angles *= -1
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
@ -183,6 +183,7 @@ class Ellipse(Shape, metaclass=AutoSlots):
|
|||||||
def mirror(self, axis: int) -> 'Ellipse':
|
def mirror(self, axis: int) -> 'Ellipse':
|
||||||
self.offset[axis - 1] *= -1
|
self.offset[axis - 1] *= -1
|
||||||
self.rotation *= -1
|
self.rotation *= -1
|
||||||
|
self.rotation += axis * pi
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def scale_by(self, c: float) -> 'Ellipse':
|
def scale_by(self, c: float) -> 'Ellipse':
|
||||||
|
Loading…
Reference in New Issue
Block a user