Argument arg1 = (Argument)args.get(0); if (args.size() == 1) return(evaluate(context, arg1)); if (args.size() != 4) throw new MapyrusException(MapyrusMessages.get(MapyrusMessages.WRONG_FUNCTION_VALUES));  Argument arg2 = (Argument)args.get(1); Argument arg3 = (Argument)args.get(2); Argument arg4 = (Argument)args.get(3);
	public Argument evaluate(ContextStack context, Argument arg1, Argument arg2,		Argument arg3, Argument arg4) throws MapyrusException	{		Argument retval;		double x1 = arg1.getNumericValue();		double y1 = arg2.getNumericValue();		double x2 = arg3.getNumericValue();		double y2 = arg4.getNumericValue();		double xMin = Math.min(x1, x2);		double yMin = Math.min(y1, y2);		double xMax = Math.max(x1, x2);		double yMax = Math.max(y1, y2);		if (context.isProtected(xMin, yMin, xMax, yMax))			retval = Argument.numericOne;		else			retval = Argument.numericZero; 		return(retval);	}