An axis-aligned rectangle is represented by a list [x1,y1,x2,y2][x_1, y_1, x_2, y_2][x1,y1,x2,y2], where:
(x1,y1)(x_1, y_1)(x1,y1) denotes the coordinates of the bottom-left corner.
(x2,y2)(x_2, y_2)(x2,y2) denotes the coordinates of the top-right corner.
The rectangle’s ...