static private AssertEqualWithinReason ( System.Vector4 a, System.Vector4 b ) : void | ||
a | System.Vector4 | |
b | System.Vector4 | |
return | void |
static void AssertEqualWithinReason (Vector4 a, Vector4 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));
Assert.That(a.W, Is.EqualTo(b.W).Within(tolerance));
}