public boolean estSelectionne(int leX, int leYy) {
		double a, b, c, h, g;
		int x1 = (int) getExtremiteInitiale().getCoordonnees().getX();// this.debut.getX();
		int y1 = (int) getExtremiteInitiale().getCoordonnees().getY();// this.debut.getY();
		int x2 = (int) getExtremiteTerminale().getCoordonnees().getX();// this.fin.getX();
		int y2 = (int) getExtremiteTerminale().getCoordonnees().getY();// this.fin.getY();

		a = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
		b = Math.sqrt((x1 - leX) * (x1 - leX) + (y1 - leYy) * (y1 - leYy));
		c = Math.sqrt((leX - x2) * (leX - x2) + (leYy - y2) * (leYy - y2));

		h = a / 2 - (b * b) / (2 * a) + c * c / (2 * a);

		g = Math.sqrt(c * c - h * h);
		if (g < 10
				&& (leX > x1 - 4 && leX < x2 + 4 || leX < x1 + 4
						&& leX > x2 - 4)
				&& (leYy > y1 - 4 && leYy < y2 + 4 || leYy < y1 + 4
						&& leYy > y2 - 4))
			return true;
		return false;
	}