Exemple #1
0
        public static void PointDTest()
        {
            Console.WriteLine("++++++++++++++++++++PointD++++++++++++++++++++++");
            PointD c1 = new PointD(102.01, 2990.19945);

            Console.WriteLine("Point 01:{0}", c1.ToString());
            try
            {
                PointD c2 = PointD.Parse(c1.ToString());
                Console.WriteLine("Point 02:{0}", c2.ToString());
                if (c2 == c1)
                {
                    Console.WriteLine("01 == 02");
                }
                else
                {
                    Console.WriteLine("01 != 02");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("PointD.Parse failed, {0}.", ex.Message);
            }
            Console.WriteLine("===============================================");
        }