Here are intersection videos. The purple segments you see is the shortest segment connecting all primitives (from it you can compute the distance). Green primitive means no intersection, yellow means intersection and red means contained
For 2D version we have: point, line, ray, segment, aarect, rect, circle, capsule, triangle.
This is the incomplete 3D version, we have: point, line, ray, segment, plane, aabox, box, sphere (missing capsule, cylinder(this one is the hardest) and triangle).