2d rectangle in cartesian space