Avast there, other programmers!
I have the following problem:
I have two rectangles overlapping as shown in the image below.

I want to figure out a polygon consisting of an ABCDEF point.
Alternative Christmas Description: A red cutter cutter cuts off some black cookies. I want to calculate a black cookie.
Each rectangle represents a data structure with 4 2d vertices.
What is the best algorithm to achieve this?
c ++ algorithm geometry boolean
Nailer
source share