npruehs / game-math

Free open-source math library for games.
http://npruehs.de/game-math/api/1.0
MIT License
42 stars 8 forks source link

3D Intersection - Line-Plane #15

Open npruehs opened 9 years ago

npruehs commented 9 years ago

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

public static bool Intersects(this LineSegment3F line, PlaneF plane)

Call that method from

public static bool Intersects(this PlaneF plane, LineSegment3F line)

If you can, provide an overload with an out parameter containing the intersection point(s).

Write at least one unit test illustrating your solution, and/or add any reference links as comments.