Example #1
0
        public void Intersects_BoundingExtent(double minX, double minY, double maxX, double maxY, double r_minX, double r_minY, double r_maxX, double r_maxY, bool valid)
        {
            BoundingWorldExtent3D bound = new BoundingWorldExtent3D(0, 0, 100, 100);

            // Check variant #1
            var bound2 = new BoundingWorldExtent3D(minX, minY, maxX, maxY);

            bound.Intersects(bound2).Should().Be(valid);

            // Check variant #2
            bound = new BoundingWorldExtent3D(0, 0, 100, 100);

            bound.Intersects(minX, minY, maxX, maxY).Should().Be(valid);
        }