title: Get the points of intersection from 2 rectangles
body: <p>Let say that we have two rectangles, defined with their bottom-left and top-right corners. For example: <strong>rect1 (x1, y1)(x2, y2)</strong> and  <strong>rect2 (x3, y3)(x4, y4)</strong>.
  I'm trying to find the coordinates(bottom-left and top-right) of the intersected rectangle.</p>
  
  <p>Any ideas, algorithm, pseudo code, would be greatly appreciated.</p>
  
  <p>p.s. I found similar questions but they check only if 2 rectangle intersect. </p>