Polygon intersection test