public class Cercle{

	private Point centre;
	private String nom;
	private int rayon;
	
	public Cercle(int initRayon, Point initCentre, String initNom){
		this.centre=initCentre;
		this.rayon=initRayon;
		this.nom = initNom;
	}
	
	public Point getCentre(){
		return centre;
	}
	
	public int getRayon(){
		return rayon;
	}
	
	public String getNom(){
		return nom;
	}
	
	
	
	public void translater(int depHorizontal, int depVertical){
		centre.translater(depHorizontal, depVertical);
	}
	
	public float perimetre(){
		return (float)(Math.PI*2*rayon);
	}
	
	public float surface(){
		return (float)(rayon*rayon*Math.PI);
	}
	
	public String toString(){
		return nom+"[ "+centre+" ; "+rayon+" ]";
	}
	
	public static void main(String[]args){
		System.out.println("Salut!");
		Point p = new Point("Le point A", 10, -4);
		Cercle c = new Cercle(14, p, "The beautiful circle");
		System.out.println(c);
	}

}