game-math
game-math copied to clipboard
3D Intersection - Line-Line
Implement a line-line intersection test with the following signature:
public static bool Intersects(this LineSegment3F first, LineSegment3F second)
If you can, provide an overload with an out parameter containing the intersection point.
Write at least one unit test illustrating your solution, and/or add any reference links as comments.