A point in a 3D space is given as $ P(x,y,z) $. I want to find the position of this point projected parallel to the normal on a plane Q defined by $3$ non-collinear points $ Q1(x1,y1,z1), Q2(x2,y2,z2)\; and \;Q3(x3,y3,z3) $.
How to derive this point of projection?
I saw this entry on Wikipedia but I cannot understand it.
I'd prefer an answer that gives the derivation of a $4$-ary transformation function $f$ such that
$ f \; (P, Q1, Q2, Q3) = P' $
where P' is a point in 2D with co-ordinates as $ P'(x',y') $ such that P' is the required projection of P on the plane Q.
Let $Q_1$, $Q_2$ and $Q_3$ be linearly independent vectors. The formula $$ n=\frac{(Q_2-Q_1)\times(Q_3-Q_2)}{|(Q_2-Q_1)\times(Q_3-Q_2)|} $$ defines a unit vector normal to the plane. Let $P$ be a vector, and $\pi(P)$ its normal projection onto the plane. Then, $$ P-\pi(P)=D\,n $$ for some $D\in\mathbb{R}$. Keeping in mind that $n$ is orthogonal to the plane, we can write $$ D=(P-\pi(P))\cdot n=(P-\pi(P))\cdot n+(\pi(P)-Q_1)\cdot n=(P-Q_1)\cdot n $$ Finally, we have: $$ \pi(P)=P-\left((P-Q_1)\cdot n\right)n $$