Did you see that?
[SOLVED] How to find intersection between two Rays?
http://discourse.threejs.hofk.de/2019/LinesDistance/LinesDistance.html from Collection of examples from discourse.threejs.org