Find the intersection of a line with a plane: Difference between revisions
Content added Content deleted
Line 25: | Line 25: | ||
⍝ The intersection I belongs to a line defined by point D and vector V, means that t exists, so that I = D + tV |
⍝ 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 is normal to vector N |
⍝ I belongs to the plan defined by point P and normal vector N. This means that the IP vector is normal to vector N |
||
⍝ This translates to their scalar product |
⍝ This translates to their scalar product being zero. |
||
⍝ (P - I).N = 0 <=> (P - D - tV).N = 0 |
⍝ (P - I).N = 0 <=> (P - D - tV).N = 0 |
||
⍝ Using distributivity, then associativity, the following equations are established: |
⍝ Using distributivity, then associativity, the following equations are established: |