Point.Path.AddPoint C# (CSharp) Method

AddPoint() public method

public AddPoint ( Point3D point ) : void
point Point3D
return void
        public void AddPoint(Point3D point)
        {
            this.AllPoints.Add(point);
        }

Usage Example

Esempio n. 1
0
        static void Main()
        {
            Path pointsPath = new Path();
            pointsPath.AddPoint(new Point3D(10, 10, 10));
            pointsPath.AddPoint(new Point3D(0.5, 0.3, 0.4));
            pointsPath.AddPoint(new Point3D(0.7, 0.24, 5.73));

            Console.WriteLine("Current points: ");
            Console.WriteLine(pointsPath.ToString());

            // Save the points to the file
            PathStorage.Save(pointsPath, "Test.txt");

            // Read the new points
            Path newPointsPath = PathStorage.Load("Test.txt");
            Console.WriteLine("Points read from the file: ");
            Console.WriteLine(newPointsPath.ToString());
        }
All Usage Examples Of Point.Path::AddPoint