The question is as simple as that, but I have been trying to figure out an answer (and searching for it) with 0 results. I mean, given two triangles (in 2D) I want to find just a single point which they may have in common. Of course I have the long solution consisting of looking for intersections in their perimeter. But maybe you could guide me to a faster solution for computing it.
For example, given the first triangle A(0,0) B(0,4) C(4,0) and the second A'(0,0) B'(2,4) C'(2,0) some possible solutions are : P(0,0) or P(1,1) or P(2,2) or P(1,2), ...
Summary: Im looking for a "fast" algorithm that given A, B, C, A', B', C' it outputs a single point P (if it exists) common to both triangles
Any ideas? Thanks
This is a harder problem than it might seem.
A Google search for "intersection of two triangles" came up with, among other suggestions, this, which handles both 2D and 3D triangles: https://hal.inria.fr/inria-00072100/file/RR-4488.pdf .
You can append "2D" to the search to restrict your results.