Anonymous user
Find the intersection of a line with a plane: Difference between revisions
Find the intersection of a line with a plane (view source)
Revision as of 20:00, 14 December 2020
, 3 years ago→{{header|APL}}
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
⍝ This translates to their scalar product being zero.
⍝ (P - I).N = 0 <=> (P - D - tV).N = 0
|