public void IntersectWithCoplanarRay() { var p = new shapes.Plane(); var r = new RTF.Ray( pt.Point(0, 0, 0), pt.Vector(0, 0, 1)); var xs = p.LIntersect(r); Assert.Empty(xs); }
public void RayIntersectionPlaneFromBelow() { var p = new shapes.Plane(); var r = new RTF.Ray( pt.Point(0, -1, 0), pt.Vector(0, 1, 0)); var xs = p.LIntersect(r); Assert.NotEmpty(xs); Assert.Equal(1, xs[0].T); Assert.Equal(p, xs[0].Object); }