Pelles C forum

C language => Expert questions => Topic started by: abhas on April 09, 2011, 05:31:51 AM

Title: triangle problem
Post by: abhas on April 09, 2011, 05:31:51 AM
i need to do this program: enter the 3 co-ordinates of 2 triangles respectively and check if one of them contains the other. i have been thinking of treating them as circles (finding the circumcircle)and check the required, but there are two problems:
1> the triangles may not cut each other but the circum-circles may. so it is not the perfect way to solve.
2> i even dont know how to find the circum-centre and circum-centre with the given data.
  any other idea about how to solve it or even solving problem 2> will be appreciated.
  i am just asking for the mathematical concept applicable here and not the cod
Title: Re: triangle problem
Post by: Stefan Pendl on April 09, 2011, 09:03:57 AM
See my reply to your duplicate post (http://forum.pellesc.de/index.php?topic=3664).