Menu

3D Triangles

1
2
3
4
5
6
7
8
9
10
11
int main()
{
	int t;
	for(scanf("%d",&t); t--;)
	{
		Coord3 p[6];
		for(int i=0; i<6; ++i)
			scanf("%lf%lf%lf",&p[i].X,&p[i].Y,&p[i].Z);
		printf("%d\n",TriTriIntersection(p,p+3));
	}
}