public void TestAreaOfTriangle2()
        {
            // http://www.mathopenref.com/coordtrianglearea.html

            var A     = new Point3D(-6, 20);
            var B     = new Point3D(11, 39);
            var C     = new Point3D(15, -6);
            var area  = Transformation.AreaOfTriangle(A, B, C);
            var area2 = Transformation.AreaOfTriangleFast(A, B, C);

            Assert.AreEqual(420.5f, area, 0.00000001);
            Assert.AreEqual(420.5f, area2, 0.00000001);
        }
        public void TestAreaOfTriangle3()
        {
            // http://keisan.casio.com/has10/SpecExec.cgi?id=system/2006/1223520411

            var A     = new Point3D(-2, 3);
            var B     = new Point3D(-3, -1);
            var C     = new Point3D(3, -2);
            var area  = Transformation.AreaOfTriangle(A, B, C);
            var area2 = Transformation.AreaOfTriangleFast(A, B, C);

            Assert.AreEqual(12.5f, area, 0.00000001);
            Assert.AreEqual(12.5f, area2, 0.00000001);
        }
        public void TestAreaOfTriangle1()
        {
            // http://www.mathopenref.com/coordtrianglearea.html

            var A     = new Point3D(15, 15);
            var B     = new Point3D(23, 30);
            var C     = new Point3D(50, 25);
            var area  = Transformation.AreaOfTriangle(A, B, C);
            var area2 = Transformation.AreaOfTriangleFast(A, B, C);

            Assert.AreEqual(222.5f, area, 0.00000001);
            Assert.AreEqual(222.5f, area2, 0.00000001);
        }