Ejemplo n.º 1
0
 public static void determinant()
 {
     Assert.Equal(660, _forDeterminant660.CalculateDeterminant());
     Assert.Equal(0, _forDeterminant0.CalculateDeterminant());
     Assert.Equal(0, new Matrix4(1, -1, 0, 2, -1, 1, 2, 3, 2, -2, 3, 4, 6, -6, 6, 1).CalculateDeterminant());
     Assert.Equal(12, new Matrix4(1, 0, 2, 1, 2, -1, 1, 0, 1, 0, 0, 3, -1, 0, 2, 1).CalculateDeterminant());
 }
Ejemplo n.º 2
0
        public static void determinant_tricky()
        {
            var determinant = _determinantIsNegOne.CalculateDeterminant();

            Assert.Equal(-1, determinant);
        }