Hi anybody have an idea how to get intersection of two lines in blueprint ???
Hello! It depends on how this lines are set up. Line can be set by point and direction or two points or two linear equtaions in 3d space and so on…
I set up them by start and end point…
Ok, let denote them as (A, B) and (C, D). So
-
firstly we should check that lines can intersect. To do so they need to lay in one plane. So this determinant (Determinant - Wikipedia) should be equal to 0 while having any two rows as linear independent. This would mean that we can get the fourth point by vectors from first three of them:
Ax-Bx, Ay-By, Az-Bz Ax-Cx, Ay-Cy, Az-Cz Dx ,Dy ,Dz
-
If prev point is Ok then you can just solve linear equations system