Source: https://www.uwinnipeg.ca/mathstats/docs/Lines.pdf