Construct an iso-cost contour line from any candidate coordinate point by following the appropriate slope in each grid.
5. Determine the slope for each grid region enclosed by the candidate coordinates. The slope equals the negative of the ratio of the net horizontal pull and the net vertical pull