I have two rectangles characterized by 4 values each :
Left position X, top position Y, width W and height H:
X
Y
W
H
if (X1+W1
If you have four coordinates – ((X,Y),(A,B)) and ((X1,Y1),(A1,B1)) – rather than two plus width and height, it would look like this:
((X,Y),(A,B))
((X1,Y1),(A1,B1))
if (A