Between two points find out how muchyou go across and how much you go up.

From these two distances you can find the gradient and the length of the line segment between the points.