More details how to calculate Matrix Determinants: http://en.wikipedia.org/wiki/Determinant
View code on GitHub Namespace: DeltaEngine.DatatypesAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public float GetDeterminant()
public float GetDeterminant()
Public Function GetDeterminant As Single
Public Function GetDeterminant As Single
public:
float GetDeterminant()
public:
float GetDeterminant()
member GetDeterminant : unit -> float32
member GetDeterminant : unit -> float32
Return Value
Type:
SingleTests:
DeltaEngine.Tests.Datatypes.MatrixTests2 unit tests call DeltaEngine.Datatypes.Matrix.GetDeterminant
[Test]
public void IdentityHasDeterminantOne()
{
Assert.AreEqual(1, Matrix.Identity.GetDeterminant());
}
[Test]
public void IdentityHasDeterminantOne()
{
Assert.AreEqual(1, Matrix.Identity.GetDeterminant());
}
[Test]
public void GetDeterminant()
{
matrix = new Matrix(1, 0, 0, 0, 0, 1, 2, 1, 0, 2, 1, 3, 0, 2, 1, 1);
Assert.AreEqual(6, matrix.GetDeterminant());
}
[Test]
public void GetDeterminant()
{
matrix = new Matrix(1, 0, 0, 0, 0, 1, 2, 1, 0, 2, 1, 3, 0, 2, 1, 1);
Assert.AreEqual(6, matrix.GetDeterminant());
}