Calculate coordinate in 3D triangle.

pjhphysics
Messages
16
Reaction score
0
Hi,
I'm looking for an efficient way of achieving the following, but having trouble thinking it through:

Let's say I have a triangle in three dimensions with vertices A, B and C.
Let's say I also have a three dimensional coordinate D. I know the x and z component values for D and I am trying to find the y value such that the point resides on the plane of triangle ABC.

What would be a good way of doing that?

Thanks!
 
Physics news on Phys.org
You could set up the plane equation

ax + by +cz + d = 0

of the plane containing the triangle ABC, insert the known (x, z) coordinates of your point D and solve for y
 
That does it. Thanks a ton
 
Back
Top