Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.Vector2DTests
2 unit tests call DeltaEngine.Datatypes.Vector2D.Equals(System.Object)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- other
- Type: System Object
Return Value
Type: BooleanRemarks
Examples
[Test] public void Equals() { Assert.AreNotEqual(v1, v2); Assert.AreEqual(v1, new Vector2D(1, 2)); Assert.IsTrue(v1 == new Vector2D(1, 2)); Assert.IsTrue(v1 != v2); Assert.IsTrue(v1.Equals((object)new Vector2D(1, 2))); }
[Test] public void NearlyEquals() { Assert.IsTrue(v1.IsNearlyEqual(new Vector2D(1.000001f, 1.99999f))); Assert.IsFalse(v1.IsNearlyEqual(new Vector2D(1, 2.1f))); }
See Also