sweep tests and convex polygons intersection