src/main/java/org/fit/layout/model/Rectangular.java
public boolean encloses(Rectangular other)
    {
        return x1 <= other.x1 &&
               y1 <= other.y1 &&
               x2 >= other.x2 &&
               y2 >= other.y2;
    }
public boolean encloses(Rectangular other)
    {
        return x1 <= other.x1 &&
               y1 <= other.y1 &&
               x2 >= other.x2 &&
               y2 >= other.y2;
    }
Checks if this rectangle entirely contains another rectangle.
@param other the other rectangle
@return true when the other rectangle is completely contained in this one