I am trying to find whether two rectangles overlap each other or not. I have the following rectangles represented as [x1,x2] x [y1,y2]
Rect 1 = [0.0, 1.0] x [0.0, 1.0]
Rect 2 = [0.7, 1.2] x [0.9, 1.5]
I just need a pseudo code that I can implement to find the whether rectangles overlap each other or not.