Abacus.DoublePrecision.Vector2Tests.AssertEqualWithinReason C# (CSharp) Method

AssertEqualWithinReason() static private method

Helper to encapsulate asserting that two Vector2s are equal.
static private AssertEqualWithinReason ( System.Vector2 a, System.Vector2 b ) : void
a System.Vector2
b System.Vector2
return void
        static void AssertEqualWithinReason (Vector2 a, Vector2 b)
        {
            Double tolerance; MathsTests.TestTolerance(out tolerance);

            Assert.That(a.X, Is.EqualTo(b.X).Within(tolerance));
            Assert.That(a.Y, Is.EqualTo(b.Y).Within(tolerance));
        }
Vector2Tests