start balcony

This commit is contained in:
AKreuzer
2024-05-28 20:12:20 +02:00
parent 1371be4132
commit 5250165893
6 changed files with 53 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ class Vertice(Rectangle):
case DIRECTION.EAST | DIRECTION.WEST:
return [Point(x = self.point1.x, z = self.point1.z - 1),
Point(x = self.point2.x, z = self.point2.z + 1)]
def get_len(self):
def __len__(self):
return self.point2.x - self.point1.x + self.point2.z - self.point1.z + 1