Example #1
0
        public void PointInTriangleTest3()
        {
            Vector2 point = new Vector2(10, 10);
            Vector2 t0    = new Vector2(-1, -1);
            Vector2 t1    = new Vector2(1, -1);
            Vector2 t2    = new Vector2(0, -10);

            Assert.IsFalse(MeshBuilder3D.PointInTriangle(point, t0, t1, t2));
        }
Example #2
0
        public void PointInTriangleTest2()
        {
            Vector2 point = Vector2.zero;
            Vector2 t0    = new Vector2(-1, 1);
            Vector2 t1    = new Vector2(1, 1);
            Vector2 t2    = new Vector2(0, -10);

            Assert.IsTrue(MeshBuilder3D.PointInTriangle(point, t0, t1, t2));
        }