Find intersection between two Line3

How can I find the intersecting point between two Line3s (if there is any)?

This is actually duplicate from here:

You can compute the the shortest distance between two lines in 3D. If the distance is smaller than a certain threshold value, both lines intersect.

Did you see that?

[SOLVED] How to find intersection between two Rays? from Collection of examples from

Thanks for the link! I did not see this before.

However, this seems to ignore the Z value. How can I retrieve the Z value for the intersection point as well?