Example #1
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());
        }
Example #2
0
        public void Sphere_PositionIsAtZero()
        {
            var sphere = new Sphere();

            Assert.AreEqual(new Vector3(), sphere.Position());
        }
Example #3
0
        public void Intersection_PositionThrowsNotSupportedException()
        {
            var obj = new Sphere().Intersection(new Text3D("Sup"));

            var pos = obj.Position();
        }