Beispiel #1
0
        public void AnIntersectionWithASmoothTriangle()
        {
            var r  = new Ray(new Point(-0.2, 0.3, -2), new Vector(0, 0, 1));
            var xs = tri.Intersects(r);

            Assert.AreEqual(0.45, xs[0].U.Value, EPSILON);
            Assert.AreEqual(0.25, xs[0].V.Value, EPSILON);
        }