Find point on 3D plane from vector and a point

geometryvector-spacesvectors

I am looking to find the distance of a line from a point that is normal to a plane. The unit vector of the plane is known, but it does not pass the origin of the coordinate system, and I do not have its scalar equation. Please see attached image.

The coordinates of two points are known, one has a length (L from P1) to the plane along the normal vector, which is also known. I would like the solve for the length (L` from P2 )of the normal vector on the other point (or the coordinates on the plane at the intersection) using the known length(L). Both are normal to the plane.

By using similar triangles I can solve it in 2D by using the unit vector and the distance between the points. See second part of diagram. However, I am somewhat uncertain of how to do it in 3D since the components of the unit vector would have to be accounted for when using the Lengths (L).

I sure there is an easy to solution to this, but I can not seem to get my head around it.

3D vector problem

Best Answer

Since the plane is not at the origin, it'll be much easier to shift everything over, and start from there.

I am assuming here that $P_1$, $P_2$, and the normal vector are all on the same side of the plane.

First, since we know a normal vector to the plane (let's assume that it's magnitude is 1, and call it $n$) and the distance $P_1$ is from the plane, we can easily find the coordinates for the point $P_1$ projected onto the plane with $P_1 - Ln$.

Now, we have a point on the plane, and a normal vector for the plane. The easiest thing to do now is to shift the projected point to the origin, so we get that $P_1$ becomes $P'_1 = Ln$, and $P_2$ becomes $P'_2 = P_2 - P_1 + Ln$. Now comes the fun part. Since we know that $n$ is still the normal vector for the plane, and we know that $P'_2$ is the coordinate from the origin (which is also the point which $P_1$ was projected to), we can find the distance $P'_2$ is from the plane by simply taking its dot product with the normal vector, so the final computation is:

$$ n \cdot P'_2 = n \cdot P_2 - n \cdot P_1 + L(n \cdot n) = n \cdot P_2 - n \cdot P_1 + L$$

Which is how far $P_2$ is from the plane.

Related Question