I have two 4D shapes: a polytope composed of two triangles with each side connected to the corresponding side on the other triangle (think triangular prism, but not necessarily straight) and a line segment.

I don’t need to know where they intersect, just whether they intersect or not. How can I check for this?

Source: Windows Questions C++