I want to find if one polygon is entirely included in or overlaps entirely with another. This question has a proposed algorithm, but as noted in the comment section some of the edge cases are not handled. Specifically in my case, I may have a situation like in this image:
All vertices of the red rectangle are shared with vertices of the black polygon. What is an efficient algorithm to find this case?