I tried to read this article, but i didn't understand: Intersection point of two lines in 3D
Can someone give an easy example with numbers to see how intersection points of lines in 3D-Space are calculated?
Lets say, there is a line described as two vectors for the start and end position:
Line1Start = (-1, 0, -1) Line1End = (1, 0, 1)
Line2Start = (-1, 0, 1) Line2End = (1, 0, -1)
I know that on a cartesian coordinate system, the intersection point would be at (0, 0, 0). How is the formula applied in my case?
To have the vectorial equation of a line, you need a point and a vector, and both of them you have. To get the vector, just substract the points of the same line.
From your "Line1", you get
$r: (-1, 0, -1) + \lambda\vec{v}_1$
where $\vec{v}_1=(2,0,2)$
From your "Line2", you get
$ s: (-1, 0, 1) + \mu\vec{v}_2$
where $\vec{v}_2=(2,0,-2)$
Now you got to equal the coordinates of r and s and solve the system:
$$ \left\{ \begin{array}{c} -1+2\lambda=-1+2\mu \\ 0=0 \\ -1+2\lambda=1-2\mu \end{array} \right. $$
It is clear that the solution is $(0,0,0)$ since $\lambda=1/2=\mu$