Matrix Equals Method (Matrix)Delta Engine Documentation

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

public bool Equals(
	Matrix other
)

Return Value

Type: Boolean

Implements

IEquatable T  Equals(T)
Remarks

Tests: DeltaEngine.Tests.Datatypes.MatrixTests
Examples

1 unit tests call DeltaEngine.Datatypes.Matrix.Equals(DeltaEngine.Datatypes.Matrix)
[Test]
public void AreEqual()
{
    var matrix2 = new Matrix(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
    Assert.IsTrue(matrix == matrix2);
    Assert.IsTrue(matrix.Equals(matrix2));
    matrix2[5] = 20;
    Assert.IsTrue(matrix != matrix2);
    object pointAsObject = Vector2D.One;
    Assert.IsFalse(matrix.Equals(pointAsObject));
}
See Also