Prefer [1 - axis] for clarity

This commit is contained in:
Jan Petykiewicz 2026-02-14 19:20:50 -08:00
commit accad3db9f
5 changed files with 5 additions and 5 deletions

View file

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