problem with maths :S
in
Programming Questions
•
3 years ago
I'd like to program the intersection point of two lines..
they are given with two points, so that you can write following equation:
(xp1,yp1,zp1)=(x1,y1,z1)+s*(u1,v1,w1);
and
(xp2,yp2,zp2)=(x2,y2,z2)+t*(u2,v2,w2);
so now I could write it as three equations, so that I've got s=, s= and s=.
Now I could replace t with the rest and I've got a solution for s and can calculate the point. But if xp1 is 0, there's a mistake..
so is there an equation for every case?
1