I am running into another algorithm problem where I need to decide the best approach for completing this.
For a simplistic view, I have 2 polygons (Polygon A and B) that can be either convex or non-convex (concave?) and that are "simple". The polygons will be comprised of either lines or arcs but, the polygons do not loop on themselves. I need to determine if A fully contains B.
My current methodology for determining if Polygon A contains Polygon B would be to see if the bounding box of B was inside A. However, I was getting some issues with this and getting false positives. To save the explanation, my issue is the same issue that this guy was having: https://math.stackexchange.com/questions/2273108/polygon-in-polygon-testing
In one of the answers, you will see a picture of what would result in a false positive. The answer also contained a link to a possible solution: Check if polygon is inside a polygon
I am not quite in favor of the line intersection method because when we deal with arcs, things can get a bit complicated. Although, I am open to still doing the line intersection if someone could post a good answer that makes the intersection with arcs simple.
So, I am asking the community if there is another simpler method to determining if Polygon A full encloses Polygon B and if so, if they could post some resources on how to construct said algorithm?
Edit:
The arcs are represented by circular arcs