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

@ -179,7 +179,7 @@ class PolyCollection(Shape):
return self
def mirror(self, axis: int = 0) -> Self:
self._vertex_lists[:, axis - 1] *= -1
self._vertex_lists[:, 1 - axis] *= -1
return self
def scale_by(self, c: float) -> Self: