Пример #1
0
        public void Test_cubes_that_do_not_touch_success()
        {
            var cubeA = _builder.Build(new Domain.Model.Point(2, 2, 2), 2);
            var cubeB = _builder.Build(new Domain.Model.Point(10, 10, 10), 2);

            var result = _collisionDetector.Collides(cubeA, cubeB);

            Assert.False(result);
        }
        public void Test_cubes_that_do_not_intersect_success()
        {
            var cubeA  = _builder.Build(new Domain.Model.Point(2, 2, 2), 2);
            var cubeB  = _builder.Build(new Domain.Model.Point(10, 10, 10), 2);
            var result = _intersectionVolumeCalculator.Calculate(cubeA, cubeB);

            Assert.Equal(0, result);
        }