public boolean isEdgeInArea(Point p1, Point p2) {
		double x1 = p1.getX();
		double y1 = p1.getY();
		double x2 = p2.getX();
		double y2 = p2.getY();

		if (x1 > x2) {
			double temp = x1;
			x1 = x2;
			x2 = temp;
		}
		if (y1 > y2) {
			double temp = y1;
			y1 = y2;
			y2 = temp;
		}

		if (getCenterX() >= x1 && getCenterX() <= x2 && getCenterY() >= y1
				&& getCenterY() <= y2) {
			return true;
		}
		return false;
	}