Source: https://math.univ-cotedazur.fr/~junca/pdffiles/DSHomograph.pdf