package xmp_interface;

class Circle implements Shapes {
	Point llc;
	double radius;
	public Circle(Point llc, double radius) { this.llc=llc; this.radius=radius; }
	public void move(double dx, double dy) { llc=llc.move(dx,dy); }
	public void grow(double factor) { radius *=factor; }
	public Point getllc() { return llc; }
	public Point getur() { Point ur=new Point(llc); ur=ur.move(2*radius,2*radius); return ur; }
	public Point getCenter() { Point cen=new Point(llc); cen=cen.move(radius,radius); return cen; }
	public String toString() { return "Circle @ " + getCenter() + " radius="+radius; }
}