I would really appreciate it if anyone can help me here with this simple problem that I think requires a complex solution but not sure.

I have two 3D line segments, each line segment represented by two 3D (x,y,z) points. I need to know if and where these two line segments intersect.

Thankyou!