News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

triangle problem

Started by abhas, April 09, 2011, 05:31:51 AM

Previous topic - Next topic

abhas

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

Stefan Pendl

#1
See my reply to your duplicate post.
---
Stefan

Proud member of the UltraDefrag Development Team