Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void MatrixZero() { matrix = new Matrix(); for (int i = 0; i < 16; i++) Assert.AreEqual(0, matrix[i]); }
[Test] public void CreateFromString() { var textMatrix = new Matrix("0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15"); for (int i = 0; i < 16; i++) Assert.AreEqual(textMatrix[i], matrix[i]); }
[Test] public void CreateScale() { matrix = Matrix.CreateScale(Vector3D.One*2); var expected = new Matrix(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1); Assert.AreEqual(expected, matrix); }
See Also