I need an algorithm that returns the point of intersection between two lines. The algorithm is capable of determining the relative position then I'm sure the lines will intersect.
My question is: I want to avoid linear systems in my program so I found this resolution:
$$ \lambda\in{R} $$ $$ r: (x, y, z) + \lambda\vec{v}_1 $$ $$ s: (x_2, y_2, z_2) + \mu\vec{v}_2 $$ $$ \lambda = \mu \, \therefore \lambda(\vec{v}_1 \times \vec{v}_2) = ((x, y, z) - (x_2, y_2, z_2)) \times \vec{v}_2 $$
So it's just I find the value of lambda and replace the equations of lines. But I can't isolate the lambda because the equation will be a division between vectors and the resolution says "we can solve for 'a' by taking the
magnitude of each side and dividing"
What does that mean? I don't have native English and it was very confusing I thank if someone can explain