Source: http://mathematiques.ac-dijon.fr/sources/seances_tuic/algo_intersection_courbe_droite.pdf