public void Invert() { Assert.AreEqual(Matrix33D.Identity, Matrix33D.Identity.Inverse); Matrix33D m = new Matrix33D(1, 2, 3, 2, 5, 8, 7, 6, -1); Vector3D v = Vector3D.One; Vector3D w = m * v; Matrix33D im = m; im.Invert(); Assert.IsTrue(Vector3D.AreNumericallyEqual(v, im * w)); Assert.IsTrue(Matrix33D.AreNumericallyEqual(Matrix33D.Identity, m * im)); }
public void InvertException() { Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor); m.Invert(); }