Calculate coordinate in 3D triangle.

  • Context: Undergrad 
  • Thread starter Thread starter pjhphysics
  • Start date Start date
  • Tags Tags
    3d Coordinate Triangle
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
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

[tex]ax + by +cz + d = 0[/tex]

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