static void Main()
        {
            Point3D p = new Point3D(4.3, 2, 0.23);

            Console.WriteLine(p.ToString());

            p = Point3D.StartingPoint;
            Console.WriteLine(p.ToString());

            Console.ReadKey();
        }
Пример #2
0
 static void Main()
 {
     Point3D pointA = new Point3D("pointA", 1.2, 3, 5.6);
     Point3D pointB = new Point3D("pointB", -1.2, 3, 5.6);
     Point3D pointc = new Point3D("pointC", 0, 2, 3);
     //Point3D pointTest = new Point3D();
     Console.WriteLine(pointA.ToString());
     Console.WriteLine(pointB.ToString());
     Console.WriteLine(pointc.ToString());
     Console.WriteLine(DistanceCalculator.GetDistance(pointA, pointB));
 }
Пример #3
0
        static void Main(string[] args)
        {
            Point3D test = new Point3D(0, 1, 2);

            Console.WriteLine(test.ToString()); // but the output will be the same without using ".ToString()"
        }
Пример #4
0
 static void Main(string[] args)
 {
     Point3D test = new Point3D(0, 1, 2);
     Console.WriteLine(test.ToString()); // but the output will be the same without using ".ToString()"
 }