public void TestThrowOnAlmostEqualWithTooLowYInVector()
        {
            Vector3 exactVector    = new Vector3(exactFloat, exactFloat, exactFloat);
            Vector3 minusTwoVector = new Vector3(exactFloat, minusTwoFloat, exactFloat);

            Assert.Throws <AssertionException>(
                delegate() { GeoAssertHelper.AreAlmostEqual(exactVector, minusTwoVector, 1); }
                );
        }
        public void TestAlmostEqualWithVectors()
        {
            Vector3 exactVector    = new Vector3(exactFloat, exactFloat, exactFloat);
            Vector3 minusOneVector = new Vector3(minusOneFloat, minusOneFloat, minusOneFloat);
            Vector3 plusOneVector  = new Vector3(plusOneFloat, plusOneFloat, plusOneFloat);

            GeoAssertHelper.AreAlmostEqual(exactVector, minusOneVector, 1);
            GeoAssertHelper.AreAlmostEqual(exactVector, plusOneVector, 1);
        }
        public void TestAlmostEqualWithAxisAlignedBoxes()
        {
            Vector3 exactVector    = new Vector3(exactFloat, exactFloat, exactFloat);
            Vector3 minusOneVector = new Vector3(minusOneFloat, minusOneFloat, minusOneFloat);
            Vector3 plusOneVector  = new Vector3(plusOneFloat, plusOneFloat, plusOneFloat);

            Volumes.AxisAlignedBox3 oneOffAabb = new Volumes.AxisAlignedBox3(
                minusOneVector, plusOneVector
                );
            Volumes.AxisAlignedBox3 exactAabb = new Volumes.AxisAlignedBox3(
                exactVector, exactVector
                );

            GeoAssertHelper.AreAlmostEqual(exactAabb, oneOffAabb, 1);
        }
        public void TestThrowOnAlmostEqualWithTooLargeAxisAlignedBox()
        {
            Vector3 exactVector    = new Vector3(exactFloat, exactFloat, exactFloat);
            Vector3 minusTwoVector = new Vector3(minusTwoFloat, minusTwoFloat, minusTwoFloat);
            Vector3 plusTwoVector  = new Vector3(plusTwoFloat, plusTwoFloat, plusTwoFloat);

            Volumes.AxisAlignedBox3 twoOffAabb = new Volumes.AxisAlignedBox3(
                minusTwoVector, plusTwoVector
                );
            Volumes.AxisAlignedBox3 exactAabb = new Volumes.AxisAlignedBox3(
                exactVector, exactVector
                );

            Assert.Throws <AssertionException>(
                delegate() { GeoAssertHelper.AreAlmostEqual(exactAabb, twoOffAabb, 1); }
                );
        }