class BoundingBox: def __init__(self, x, y, width, height): self.x = x self.y = y self.width = width self.height = height def get_dimensions(self): return self.width, self.height def get_position(self): return self.x, self.y def contains_point(self, position: tuple[float, float]): return self.x <= position[0] <= self.x + self.width and self.y <= position[1] <= self.y + self.height def __str__(self): return f"({self.x}, {self.y}, {self.width}, {self.height})"