Hello All...
I need a bit of help on intersection between a plane and line. I went
to the FAQ, and found this:
Subject 5.05: How do I find the intersection of a line and a plane?
If the plane is defined as:
a*x + b*y + c*z + d = 0
and the line is defined as:
x = x1 + (x2 - x1)*t = x1 + i*t
y = y1 + (y2 - y1)*t = y1 + j*t
z = z1 + (z2 - z1)*t = z1 + k*t
Then just substitute these into the plane equation. You end up with:
t = - (a*x1 + b*y1 + c*z1 + d)/(a*i + b*j + c*k)
When the denominator is zero, the line is contained in the plane
if the numerator is also zero (the point at t=0 satisfies the
plane equation), otherwise the line is parallel to the plane.
Humpf.... That doesn't help me much! The plane I have is defined by 3
points in space and the line defined by 2 others. From that, how do I move
the the equations up here? Plus, I don't want to have to solve an equation
each time I want to find the intersection between a line and a plane.
In fact, the bottom line is does anyone knows an *algorithm* that does
that....
Thank you
Jocelyn Legault