Generalized the slope function
Generalized the function that gives you an endpoint of a line segment given a point, a slope, and a length