public static Vector2d valueOf(String arg) {
		Vector2d result = null;
		boolean goFlag = true;
		String tmp = "";
		String strX = "";
		String strY = "";
		Scanner s1 = new Scanner(arg);
		
		if (goFlag) {
			tmp = s1.findInLine("\\s*\\(\\s*");
			goFlag = (tmp != null);
		}
		if (goFlag) {
			strX = s1.findInLine(MdMath.NUMBER_FORMAT_REGEX);
			goFlag = (strX != null);
		}
		if (goFlag) {
			tmp = s1.findInLine("\\s*,\\s*");
			goFlag = (tmp != null);
		}
		if (goFlag) {
			strY = s1.findInLine(MdMath.NUMBER_FORMAT_REGEX);
			goFlag = (strY != null);
		}
		if (goFlag) {
			tmp = s1.findInLine("\\s*\\)\\s*");
			goFlag = (tmp != null);
		}
		
		if (goFlag) {
			try {
				double x = Double.parseDouble(strX);
				double y = Double.parseDouble(strY);
				result = new Vector2d(x,y);
			} catch (NumberFormatException e) {
			}
		}
		if (result == null) {
			throw new NumberFormatException(arg);
		}
		return result;
	}