public Point(double x, double y)
public double DistTo(Point M)
d = Math.Sqrt(Math.Pow(this.x - M.x, 2) + Math.Pow(this.y - M.y, 2));
return this.x == M.x && this.y == M.y;
double n = (this.x + M.x) / 2;
double t = (this.y + M.y) / 2;
static void Main(string[] args)
Console.WriteLine("Въведете координатите на А: ");
x1 = double.Parse(Console.ReadLine());
y1 = double.Parse(Console.ReadLine());
Point A = new Point(x1, y1);
Console.WriteLine("Въведете координатите на В: ");
x2 = double.Parse(Console.ReadLine());
y2 = double.Parse(Console.ReadLine());
Point B = new Point(x2, y2);
Console.WriteLine("Разстоянието между А и В е " + C.DistTo(B));
Console.WriteLine(A.TF(B));
Console.WriteLine("М (" + A.N(B) + ";" +A.P(B) + ")");