This commit is contained in:
nik
2025-09-30 14:26:54 +03:00
parent 8bd93df2ae
commit 8164e04835
633 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
using System;
class Line
{
private Point pStart;
private Point pEnd;
public Line(Point pStart, Point pEnd)
{
this.pStart = pStart;
this.pEnd = pEnd;
}
public Line()
{ }
public void Show()
{
Console.WriteLine("Отрезок с координатами: ({0}) - ({1})", pStart, pEnd);
}
public double DlinL()
{
return pStart.Dlina(pEnd);
}
}