Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            StructPoint3D point = new StructPoint3D();

            {
                point.X = 4.3;
                point.Y = 6.2;
                point.Z = 2.1;
            }

            Console.WriteLine(point.ToString());
            double dist = Distance.CalculateDistance(point, StructPoint3D.ZeroPoint);

            Console.WriteLine(dist);

            List <StructPoint3D> p = PathStorage.LoadPath();

            foreach (var item in p)
            {
                Console.WriteLine(item);
            }

            Console.WriteLine();
            p.Add(point);
            PathStorage.SavePath(p);

            foreach (var item in p)
            {
                Console.WriteLine(item);
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            StructPoint3D point = new StructPoint3D();
            {
                point.X = 4.3;
                point.Y = 6.2;
                point.Z = 2.1;
            }

            Console.WriteLine(point.ToString());
            double dist = Distance.CalculateDistance(point,StructPoint3D.ZeroPoint);
            Console.WriteLine(dist);

            List<StructPoint3D> p = PathStorage.LoadPath();
            foreach (var item in p)
            {
                Console.WriteLine(item);
            }

            Console.WriteLine();
            p.Add(point);
            PathStorage.SavePath(p);

            foreach (var item in p)
            {
                Console.WriteLine(item);
            }
        }
Ejemplo n.º 3
0
        static void Main()
        {
            var firstPoint  = new StructPoint3D(32, 40, 0);
            var secondPoint = new StructPoint3D(154, 284, -255);

            // Print start point coordinates
            Console.WriteLine(StructPoint3D.StartPoint3D.ToString());

            // Print First 3D Point's coordinates
            Console.WriteLine(firstPoint.ToString());

            // Second 3D Point's coordinates
            Console.WriteLine(secondPoint.ToString());

            Console.Write(Environment.NewLine);
            Console.Write("Distance between points: ");
            Console.WriteLine(CalculateTheDistance.CalcDistance(firstPoint, secondPoint));
        }