public class Cercle
{
	private Point centre;
	private int rayon;
	private String nom;
	
	
	public Cercle(Point initCentre , int initRayon , String initNom)
	{
		this.centre = initCentre;
		this.rayon 	= initRayon;
		this.nom 	= initNom;
	}
	
	public void translater( int depHorizontal , int depVertical )
	{
		this.centre.translater(depHorizontal , depVertical);
	}
	
	public double perimetre()
	{
		return 2*Math.PI*this.getRayon();
	}
	
	public double surface()
	{
		return Math.PI*this.getRayon()*this.getRayon();
	}
	
	public void setCentre(Point p)
	{
		this.centre = p;
	}
	
	public void setRayon(int r)
	{
		this.rayon = r;
	}
	
	public void setNom(String s)
	{
		this.nom = s;
	}
	
	public Point getCentre()
	{
		return this.centre;
	}
	
	public int getRayon()
	{
		return this.rayon;
	}
	
	public String getNom()
	{
		return this.nom;
	}
	
	public String toString()
	{
		return this.nom+"{"+this.centre.toString()+","+Integer.toString(this.rayon)+"}";
	}
	
	public static void main(String[] args)
	{
		Point p 	= new Point("A",1,1);
		Cercle c	= new Cercle(p,3,"Ce");
		System.out.println("Votre cercle : "+c.toString());
	}
	
}






