two left
This commit is contained in:
26
labs/lab7_done/MyClassLine/Line.cs
Normal file
26
labs/lab7_done/MyClassLine/Line.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user