This is literally the same problem as Trash Removal, but with doubles instead of ints for the polygon vertices.