public static final double calcAngle(float x, float y, float sngCenterX, float sngCenterY) {
		double sngAngle = Math.atan((x - sngCenterX) / (sngCenterY - y)) * (180 / Math.PI);
		if ((x > sngCenterX) && (y > sngCenterY)) { // 0-90
			sngAngle = sngAngle + 90;
		} else if ((x < sngCenterX) && (y > sngCenterY)) { // 90-180
			sngAngle = sngAngle + 90;
		} else if ((x < sngCenterX) && (y < sngCenterY)) { // 180-270
			sngAngle = sngAngle + 270;
		} else if ((x > sngCenterX) && (y < sngCenterY)) { // 270-360
			sngAngle = sngAngle + 270;
		}
		return(sngAngle);
	}