コード例 #1
0
ファイル: Test.cs プロジェクト: AlexanderKrustev/SoftUni
 static void Main(string[] args)
 {
     Point3D point1 = new Point3D(2, 2, 2);
     Point3D point2 = new Point3D(3, 3, 3);
     Console.WriteLine("Distance betweet point with coordinates {0} and point with coordinates {1} is:\n{2}",point1.ToString(),point2.ToString(),Point3D.CalcDistance(point1, point2));
 }
コード例 #2
0
        static void Main(string[] args)
        {
            Point3D point1 = new Point3D(2, 2, 2);
            Point3D point2 = new Point3D(3, 3, 3);

            Console.WriteLine("Distance betweet point with coordinates {0} and point with coordinates {1} is:\n{2}", point1.ToString(), point2.ToString(), Point3D.CalcDistance(point1, point2));
        }