Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void CheckForNearlyEqual() { var boxMaximum = Vector3D.One; var box = new BoundingBox(Vector3D.Zero, boxMaximum); const float AllowedValueEpsilon = MathExtensions.Epsilon * 0.999f; boxMaximum += new Vector3D(AllowedValueEpsilon, AllowedValueEpsilon, AllowedValueEpsilon); var otherBox = new BoundingBox(Vector3D.Zero, boxMaximum); Assert.IsTrue(box.IsNearlyEqual(otherBox)); }
See Also