https://videosashka.com/watch/Fp2n9TinlOw/python-tutorial-2019-27-polygons-intersection-algorithm