Find if two lines in 3D are collinear
<p>I need to create a function that returns whether two lines are collinear or not. I found some solutions for this problem in 2D, such as the one in <a href="https://stackoverflow.com/questions/22456517/algorithm-for-finding-the-segment-overlapping-two-collinear-segments">Algorithm for finding the segment overlapping two collinear segments</a> but I didn't find one algorythm that allows to solve the same problem in 3D.</p>