Find the intersection of a line with a plane: Difference between revisions

Line 24:
<lang APL>⍝ Find Intersection of a line with a plane
⍝ The intersection I belongs to a line defined by point D and vector V, means that t exists, so that I = D + tV
⍝ I belongs to the plan defined by point P and normal vector N. This means that the IP vector IP is normal to vector N
⍝ This translates to their scalar product being zero.
⍝ (P - I).N = 0 <=> (P - D - tV).N = 0
Anonymous user