public bool Contains(BoundingBox other) { return other.X1 >= X1 && other.Y1 >= Y1 && other.X2 <= X2 && other.Y2 <= Y2; }