public int compare(Point a, Point b){
			if (a.degree < b.degree) return -1;
			else if (a.degree > b.degree) return 1;
			else {
				double val =  a.distaceToOrigin() - b.distaceToOrigin();
				if (val < 0) return -1;
				else if (val > 0) return 1;
				else return 0;
			}
		}