public class Point{
	private String nom;
	private int abscisse;
	private int ordonnee;
	
	public Point(String nom, int x, int y){
		this.nom = nom;
		this.abscisse = x;
		this.ordonnee = y;
	}
	
	public String getNom(){
		return this.nom;
	}
	
	public int getAbscisse(){
		return this.abscisse;
	}
	
	public boolean equals(Point p){
		return (this.nom == p.nom && this.abscisse == p.abscisse && this.ordonnee==p.ordonnee);
	}
	
	public int getOrdonnee(){
		return this.ordonnee;
	}
	
	public double distance (Point autrePoint){
		return Math.sqrt(Math.pow(autrePoint.getAbscisse() - this.getAbscisse(), 2) + Math.pow(autrePoint.getOrdonnee() - this.getOrdonnee(), 2));
	}
	
	public void translater(int depHorizontal, int depVertical){
		this.abscisse = this.abscisse + depHorizontal;
		this.ordonnee = this.ordonnee + depVertical;
	}
	
	public String toString(){
		return (""+nom+"( "+this.abscisse+" , "+this.ordonnee+" )");
	}
}