game-math icon indicating copy to clipboard operation
game-math copied to clipboard

3D Intersection - Line-Ray

Open npruehs opened this issue 9 years ago • 0 comments

Implement a line-ray intersection test with the following signature:

public static bool Intersects(this LineSegment3F line, Ray3F ray)

Call that method from

public static bool Intersects(this Ray3F ray, LineSegment3F line)

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.

npruehs avatar Nov 10 '15 18:11 npruehs