package immutableShapes;

public class Rectangle {
	private Point ll;
	private double width;
	private double height;

	public Rectangle(Point p,double width,double height) {
		ll=p;
		this.width=width;
		this.height=height;
	}

	public Rectangle move(double dx,double dy) {
		Point newll=ll.move(dx,dy);
		return new Rectangle(newll,width,height);
	}

	public String toString() {
		return new StringBuilder("Rectangle @").append(ll).append(" w=").append(width).append(" h=").append(height).toString();
	}
}