public static double getAngle(double a,double b,double c, double d){
		if((a>=c&&b>=d)||(a>=c&&b<=d))
			return Math.asin((d-b)/
	        		Math.sqrt(Math.pow((a-c),2)+
	        				Math.pow((b-d), 2)));
			else if(a<c&&b<=d)
				
				return Math.toRadians(90.0)+Math.acos((b-d)/
		        		Math.sqrt(Math.pow((a-c),2)+
		        				Math.pow((b-d), 2)));
			else return -Math.toRadians(90.0)+Math.asin((a-c)/
	        		Math.sqrt(Math.pow((a-c),2)+
	        				Math.pow((b-d), 2)));
	}