game-math
game-math copied to clipboard
3D Intersection - Ray-Plane
Implement a ray-plane intersection test with the following signature:
public static bool Intersects(this Ray3F ray, PlaneF plane)
Call that method from
public static bool Intersects(this PlaneF plane, Ray3D ray)
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.