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

AssertEqualWithinReason() static private method

Helper to encapsulate asserting that two Vector3s are equal.
static private AssertEqualWithinReason ( System.Vector3 a, System.Vector3 b ) : void
a System.Vector3
b System.Vector3
return void
        static void AssertEqualWithinReason (Vector3 a, Vector3 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));
            Assert.That(a.Z, Is.EqualTo(b.Z).Within(tolerance));
        }
Vector3Tests