Files
2025-09-30 14:26:54 +03:00

27 lines
430 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
}