Prefer [1 - axis] for clarity
This commit is contained in:
parent
05098c0c13
commit
accad3db9f
5 changed files with 5 additions and 5 deletions
|
|
@ -396,7 +396,7 @@ class Path(Shape):
|
|||
return self
|
||||
|
||||
def mirror(self, axis: int = 0) -> 'Path':
|
||||
self.vertices[:, axis - 1] *= -1
|
||||
self.vertices[:, 1 - axis] *= -1
|
||||
return self
|
||||
|
||||
def scale_by(self, c: float) -> 'Path':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue