How to modify the points of a line so that two parallel lines intersect at some point?

47 Views Asked by At

I have a set of points describing Line1 and also a set of points describing Line2. Now, these two lines are parallel and I want to modify the slope of either of these two lines so that they intersect at some point in the space.

Line1= [(x1, y1), ...., (xn, yn)]

Line2= [(X1, Y1), ...., (Xn, Yn)]

Is there any way to do this? Thank you. Any help is appreciated.

Edit: I would like the slope of the line to be changed by a max of 10°.