#pi through points
17 messages · Page 1 of 1 (latest)
Suppose the points are r1 and r2 and the line is r = r0 + st.
Then the normal vector of the plane must be perpendicular to (r2 - r1) and s. Thus:
n = (r2 - r1)⨯s
As for the projection:
We have a point P = r3. First, let's pass a line perpendicular to the plane:
r = r3 + nt
As the equation of the plane is n·(r - r1) = 0, we can substitute the equation of the line into it:
n·(r3 + nt - r1) = 0
n·(r3 - r1) + |n|^2 t = 0
t = n·(r1 - r3)/|n|^2
Now we substitute it back into the equation of the line to find the projection. Let's denote the plane by π. Then:
proj(π, r3) = r3 + (n·(r1 - r3)/|n|^2)n
Now, the reflection. As it requires us to move the same distance in the same direction as the projection, but once more, the value of t is doubled:
t = 2n·(r1 - r3)/|n|^2
So:
ref(π, r3) = r3 + 2(n·(r1 - r3)/|n|^2)n
thats the projection formula right?
n = (1, 0 , 1)
so the projection of p on pi is (1, 1/2, 1/2) ?
No, it should be {4/3, 5/3, 5/3}.
Hello, I totally missed this answer I still need some assistance if its ok?
r = (2, 1, 1) + (1, 0, 1)t?
so r is 2+t, 1, 1+t ?
No, n is not {1, 0, 1}.
{-1, 0 ,-1?
Nope. As I said, n = (r2 - r1)⨯s.
In our case r1 = {1, 1, 2}, r2 = {2, 1, 3}, s = {1, 2, -1}. So, what will n be?
Oh right the times s, didnt see it.
so s has the coordinates from the te line (1+t, 2+2t, −t).
?
Yes.
{1, 0, 1 } x {1, 2, -1}
Yes.
the scalar product is 0 so thats an ON-base