示例#1
0
        static void Main(string[] args)
        {
            // Test(); return;

            try
            {
                var tc = new TreatConstructConsole();

                var mp = new MyPoints();
                mp.GenDistances2();
                Console.WriteLine(mp);
                mp.CheckPointMatch(tc);


                mp.GenPoints();
                mp.GenDistances2();
                Console.WriteLine(mp);
                mp.CheckPointMatch(tc);

                mp.GenPoints();
                mp.GenDistances2();
                Console.WriteLine(mp);
                mp.CheckPointMatch(tc);

                mp.GenPoints();
                mp.CheckPointMatch(tc);

                //mp.GenDistances2();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
示例#2
0
        public void StartAlgo()
        {
            firstPoint = true;

            var mp = new MyPoints();

            mp.GenDistances2();
            Console.WriteLine(mp);
            mp.CheckPointMatch(this);


            mp.GenPoints();
            mp.GenDistances2();
            Console.WriteLine(mp);
            mp.CheckPointMatch(this);

            mp.GenPoints();
            mp.GenDistances2();
            Console.WriteLine(mp);
            mp.CheckPointMatch(this);

            mp.GenPoints();
            mp.CheckPointMatch(this);
        }