def droite(xA, yA, xB, yB): a = yB - yA b = xA - xB c = xB * yA - xA * yB return (a, b, c)