Source: http://math.sicard.free.fr/2de/analytique/equations_droites.pdf