Ejemplo n.º 1
0
        public TestTheBestEllipseOfPoint()
        {
            Point [] pointsDh = new [] { new Point()
                                         {
                                             x = 1, y = 2, z = 3, cr = 1, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 2, y = 3, z = 4, cr = 2, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 3, y = 4, z = 5, cr = 3, info = "test"
                                         } };
            Point[] pointsBm = new[] { new Point()
                                       {
                                           x = 2, y = 3, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 3, y = 4, z = 5
                                       }
                                       , new Point()
                                       {
                                           x = 5, y = 8, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 3, y = 2, z = 5
                                       }
                                       , new Point()
                                       {
                                           x = 8, y = 7, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 7, y = 5, z = 3
                                       }
                                       , new Point()
                                       {
                                           x = 0, y = 0, z = 1
                                       } };
            DhObj inDh = new DhObj()
            {
                points = pointsDh
            };
            BmObj inBm = new BmObj()
            {
                points = pointsBm, xAxis = 20, yAxis = 10, zAxis = 10, xElPos = 1, yElPos = 4, zElPos = 4
            };

            inData = new DhBmObj()
            {
                dh = inDh, bm = inBm
            };

            counter = new Counter(2);
        }
Ejemplo n.º 2
0
        public TestMyService()
        {
            Point [] pointsDh = new [] { new Point()
                                         {
                                             x = 1, y = 2, z = 3, cr = 1, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 2, y = 3, z = 4, cr = 2, info = "test"
                                         }
                                         , new Point()
                                         {
                                             x = 3, y = 4, z = 5, cr = 3, info = "test"
                                         } };
            Point[] pointsBm = new[] { new Point()
                                       {
                                           x = 2, y = 3, z = 4
                                       }
                                       , new Point()
                                       {
                                           x = 3, y = 4, z = 5
                                       }
                                       , new Point()
                                       {
                                           x = 5, y = 5, z = 4
                                       } };
            DhObj inDh = new DhObj()
            {
                points = pointsDh
            };
            BmObj inBm = new BmObj()
            {
                points = pointsBm, xAxis = 20, yAxis = 10, zAxis = 10, xElPos = 1, yElPos = 4, zElPos = 4
            };

            inData = new DhBmObj()
            {
                dh = inDh, bm = inBm
            };
        }