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