Matrix GetDeterminant Method Delta Engine Documentation
More details how to calculate Matrix Determinants: http://en.wikipedia.org/wiki/Determinant View code on GitHub

Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public float GetDeterminant()

Return Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Datatypes.MatrixTests
Examples

2 unit tests call DeltaEngine.Datatypes.Matrix.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());
}
See Also