src/main/java/org/fit/layout/model/Rectangular.java
public Rectangular replaceX(Rectangular other)
    {
        Rectangular ret = new Rectangular(this);
        ret.x1 = other.x1;
        ret.x2 = other.x2;
        return ret;
    }
public Rectangular replaceX(Rectangular other)
    {
        Rectangular ret = new Rectangular(this);
        ret.x1 = other.x1;
        ret.x2 = other.x2;
        return ret;
    }
public Rectangular replaceX ( Rectangular other ) { Rectangular ret = new Rectangular ( this ) ; ret . x1 = other . x1 ; ret . x2 = other . x2 ; return ret ; }
Replaces the X coordinates of the rectangle with the X coordinates of another one.
@param other the rectangle whose X coordinates will be used
@return the resulting rectangle
Replaces the X coordinates of the rectangle with the X coordinates of another one .