Source: https://www.mimaths.net/IMG/pdf/cours1-fonctionsaffines.pdf