static void Main(string[] args) { Point2D point2D = new Point2D(5, 5); Console.WriteLine(point2D.ToString()); Point3D point3D = new Point3D(3, 4, 5); Console.WriteLine(point3D.ToString()); }
static void Main() { var point = new Point3D(-7, 4, 3); var point2 = new Point3D(17, 6, 2.5); Console.WriteLine(point.ToString()); Console.WriteLine(Point3D.O); Console.WriteLine(Calculate.Distance(point, point2)); }
static void Main(string[] args) { Point3D p3d1; p3d1.X = 10; p3d1.Y = 20; p3d1.Z = 40; WriteLine(p3d1.ToString()); Point3D p3d2 = new Point3D(100, 200, 300); Point3D p3d3 = p3d2; p3d3.Z = 400; WriteLine(p3d2.ToString()); WriteLine(p3d3.ToString()); }