Hi. I don't know if this is the right forum, but I need help quick with a problem.

Let's say you have 3 points in 3D-space.p1, p2, p3.

They make up a plane. Then you have another 3D point,p4, relative to this plane. p4 can be placed anywhere, outside or inside the plane.

Then, the 3 points making up the plane moves toq1, q2, q3. I want to calculateq4. That is, p4 moving relative to the 3 points and the plane.

The angle should be maintained relatively. It's ok if the distance is scaled if the distance between the 3 points are scaled somehow.

How do I calculate this?

PLEASE HELP!