How to Convert Raycast Function? How To Compare Two Rays?

I’m sorry, I don’t think I can do more. But EgoMoose did a great job here. I hope it helps you.