Exemple #1
0
        public static void Main()
        {
            var path = new Path();

            path.Point.Add(new Point3D(1, 2, 3));
            path.Point.Add(new Point3D(3, 2, 1));

            var pathStorage = new PathStorage();

            pathStorage.Save(path.Point);
            Console.WriteLine(pathStorage.Load());
        }
Exemple #2
0
        private static void PlayWithPaths()
        {
            Point3D point  = new Point3D(1, 2, 3);
            Point3D point2 = new Point3D(12, 13, 14);

            CalculateDistanceBetweenPoints.CalculateDistance(point, point2);
            Path FirstPath = new Path("3DPoints.txt", point, point2);

            PathStorage.Save(FirstPath);
            Path SecondPath = new Path("3DPoints.txt");

            PathStorage.Load(SecondPath);
            foreach (Point3D pointt in SecondPath.PointsSequence)
            {
                Console.WriteLine(pointt);
            }
        }