function Rect(arg0, arg1, arg2, arg3) { var _newRect = { x1: arg0, y1: arg1, x2: arg2, y2: arg3 }; return _newRect; }