title: Intersection of 2D polygons
body: <p>I have two numpy arrays that are OpenCV <strong>convex hulls</strong> and I want to check for intersection without creating for loops or creating images and performing <code>numpy.bitwise_and</code> on them, both of which are quite slow in Python. The arrays look like this:</p>
  <pre><code>[[[x1 y1]]
   [[x2 y2]]
   [[x3 y3]]
  ...
   [[xn yn]]]
  </code></pre>
  <p>Considering [[x1 y1]] as one single element, I want to perform intersection between two numpy ndarrays. How can I do that? I have found a few questions of similar nature, but I could not figure out the solution to this from there.</p>