src/main/java/org/fit/layout/model/Rectangular.java
public boolean contains(int x, int y)
    {
        return x1 <= x &&
               y1 <= y &&
               x2 >= x &&
               y2 >= y;
    }
public boolean contains(int x, int y)
    {
        return x1 <= x &&
               y1 <= y &&
               x2 >= x &&
               y2 >= y;
    }
public boolean contains ( int x , int y ) { return x1 <= x && y1 <= y && x2 >= x && y2 >= y ; }
Checks if this rectangle contains a point.
@param x the point X coordinate
@param y the point Y coordinate
@return true when the point is contained in this one
Checks if this rectangle contains a point .