Hello all,
I need a function that checks whether two lines intersect. The function will accept four points which are the start and the end point for each line. Also, if they intersect, then it will return the intersection point. Consider each point has (x,y,z) values.
I need a function that checks whether two lines intersect. The function will accept four points which are the start and the end point for each line. Also, if they intersect, then it will return the intersection point. Consider each point has (x,y,z) values.
Suppose that I have two lines A and B
Line A, Start point = (x1,y1,z1) and the end point = (x2,y2,z2)
Line B, Start point = (x3,y3,z3) and the end point = (x4,y4,z4)
How can I find the intersection point (x,y,z)? I tried to do some search but didn’t understand. not sure which equation I need to use here. Can you help me on this?
Rano AHPosted Mar 4, 2014, 1:30 AM
Well, consider this as a line object in the 3D space. each line has length, width and depth. So, obviously each line has a start and end point which are being given by X,Y,Z coordinate.
Jaganathan BantheswaranPosted Mar 4, 2014, 1:19 AM
If it is line, then only two points (x,y) [for starting point] is enough to draw. What is the third point here?