How to add slope value to the end point and find new point?

38 Views Asked by At

I just draw the line using knowing values (x1,y1) and (x2,y2) fine. Now i need to apply some slope value like m = -1 to the end point and find the new end point. How to do this. Please help some experts. Thank you.