implemented convex polygon containment