Fix Rect.corners based on the unit test

This commit is contained in:
Eryn Wells 2023-02-19 19:06:24 -08:00
parent 47014d4e6e
commit 22ad73af0b

View file

@ -196,9 +196,9 @@ class Rect:
@property
def corners(self) -> Iterator[Point]:
yield self.origin
yield self.origin + Vector(self.max_x, 0)
yield self.origin + Vector(self.max_x, self.max_y)
yield self.origin + Vector(0, self.max_y)
yield Point(self.max_x, self.min_y)
yield Point(self.min_x, self.max_y)
yield Point(self.max_x, self.max_y)
@property
def edges(self) -> Iterator[int]: