示例#1
0
        public void Test_XYZTests_GetTriArea()
        {
            XYZ bottom = new XYZ(0, 0, 0);
            XYZ top    = new XYZ(0, 10, 0);
            XYZ right  = new XYZ(10, 10, 0);

            Assert.Equal(50.0, XYZ.GetTriArea(bottom, top, right));
        }
示例#2
0
 public double Area() => XYZ.GetTriArea(Vertices[0].XYZ, Vertices[1].XYZ, Vertices[2].XYZ);