How would I go about determining if a surface is outside of another surface (by any distance)? What I have below is a rectangle and two circles. I’d like to be able to determine if the circle is completly within the rectangle. If any part of the surface is outside the rectangle, I’d like to flag it. Below is the start of my graph, but I don’t know where to go from here. Any help would be greatly appreciated!
I like this algorithm
Thank you Vikram!