Calculate Z intersection of lines taking into account XY coordinates?

I cross the line in 2D and calculate the X, Y coordinates of the intersection point. What I need is the Z of the intersection given by the points of the line X, Y, Z, and the intersection of X, Y. From what I understand from the equations, it should be single-line, but I don’t know enough mathematics to get there .

+3
source share
1 answer

Your question is rather vague, but I will try to answer.

So, take the following equation:

3d line equation

Mark it as Fx(X) = Fy(Y) = Fz(Z)and take part of it:

  • Fx(X) = Fz(Z)

, x, y z , , x1, x2, z1, z2. x x. z. :

z = (x - x1) / (x2 - x1) * (z2 - z1) + z1
+3

Source: https://habr.com/ru/post/1791731/


All Articles