I have a line in 3d defined by two vectors, L0 and L1. I have a 3 vectors that describe a plane, P0, P1, and P2. How should I go about finding if these two intersect?How do I find the intersection between a given line and a plane?let line be x-a/1=y-b/2=z-c/3=k
then the variable point on line (x,y,z)=(k+a,2k+b,3k+c)
(where a,b,c are known and k is variable)
let equation of plane be 2x+3y+z=10
substitute value of(x,y,z) in plane and get value of k)
2*(k+a)+3*(2k+b)+(3k+c)=10
after getting value of k put it in (x,y,z)=(k+a,2k+b,3k+c) which is required point
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment