private static boolean shouldClip(Point p1, Point p2) {
		double w1 = p1.getCoordinate(3);
		double w2 = p2.getCoordinate(3);

		// check if the x's are too far left or right
		double x1 = p1.getCoordinate(X);
		double x2 = p2.getCoordinate(X);
		if (x1 < -w1 && x2 < -w2) {
			return true;
		}
		if (x1 > w1 && x2 > w2) {
			return true;
		}

		// check if y's are too high or too low
		double y1 = p1.getCoordinate(Y);
		double y2 = p2.getCoordinate(Y);
		if (y1 < -w1 && y2 < -w2) {
			return true;
		}
		if (y1 > w1 && y2 > w2) {
			return true;
		}

		double z1 = p1.getCoordinate(Z);
		double z2 = p2.getCoordinate(Z);

		return z1 < -w1 || z2 < -w2;
	}