Matrix Equals Method (Object)Delta Engine Documentation

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

public override bool Equals(
	Object obj
)

Return Value

Type: Boolean
Remarks

Tests: DeltaEngine.Tests.Datatypes.MatrixTests
Examples

1 unit tests call DeltaEngine.Datatypes.Matrix.Equals(System.Object)
[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