Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion surya/common/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def area(self):
return self.width * self.height

@computed_field
@property
def bbox(self) -> List[float]:
x_coords = [point[0] for point in self.polygon]
y_coords = [point[1] for point in self.polygon]
Expand Down Expand Up @@ -131,4 +132,4 @@ def shift(self, x_shift: float | None = None, y_shift: float | None = None):
corner[0] += x_shift
if y_shift is not None:
for corner in self.polygon:
corner[1] += y_shift
corner[1] += y_shift
Loading