public double distance(Point otherPoint) {
		double dist = Math.sqrt(Math.pow((this.x - otherPoint.x), 2) + Math.pow((this.y - otherPoint.y), 2));
		if (dist == Double.NaN)
			dist = 0;
		return dist;
	}