How calculate QPolygon area

I’m trying to get the intersection of a blue and green QPolygons, and the % that this makes up of the blue QPolygon (see image below). I’ve created the polygons as follows: import PyQt5 from PyQt5 …