Example #1
0
        public void Mirror_SingleAxisMirrorInvertsBounds()
        {
            OSCADObject cube = new Cube(5, 10, 20);
            var boundsBefore = cube.Bounds();
            cube = cube.Mirror(0, 1, 0);

            Assert.AreEqual(cube.Bounds().YMax, boundsBefore.YMin);
        }
Example #2
0
        public void Mirror_MultiAxisBoundsThrowsNotSupportedException()
        {
            var cube = new Cube(5, 10, 20);

            var pos = cube.Mirror(1, 1, 0).Bounds();
        }