I have looked through stack overflow to try and find a solution and found a few things that did help a little but still not quite sure how to move forward with my problem or im just missing something really obvious!
If I have 3 points that define a triangle, each of these points has an XYZ, and then I have a point P that lies within the triangle, I only have the X and Y of point P, how do I go about finding the Z value of point P?
Ive had a look at things like Triangulation and Barycentric Coordinates but im not quite sure they fit the solution.
I am trying to implement this in C# and can provide more of an example if needed
Any help would be great please!
Three points determine not only a triangle, but also a plane.
First find the plane that passes through the three points, then use the equation of the plane to solve for the z-value of P.