Input polygons (blue and red) have union outlined by green and intersection outlined by yellow.