Word description Given the two points belonging to a straight line, calculate the slope of the line, assuming the line equation is y(x) = slope * x + b.
The formula for the calculation is slope = (y1-y2) / (x1-x2), therefore it'll throw a division by zero error if both points have the same x coordinate.