Beispiel #1
0
        public void Difference_BoundsYieldsBoundsOfFirstChild()
        {
            var sphere = new Sphere().Translate(.25, .25, 1);
            var diff = sphere.Difference(new Cube());

            Assert.AreEqual(sphere.Bounds(), diff.Bounds());
        }
Beispiel #2
0
        public void Difference_PositionYieldsPositionOfFirstChild()
        {
            var sphere = new Sphere().Translate(.25, .25, 1);
            var diff = sphere.Difference(new Cube());

            Assert.AreEqual(sphere.Position(), diff.Position());
        }