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 .