Add tree graph commands

This commit is contained in:
Иван Ивашкин
2024-10-19 21:08:13 +05:00
parent 88ac95af2f
commit 11ac7c7c48
17 changed files with 366 additions and 112 deletions

View File

@@ -6,9 +6,20 @@ using System.Threading.Tasks;
namespace StructureHelperCommon.Models.Functions
{
public class GraphPoint
public class GraphPoint : ICloneable
{
public double X { get; set; }
public double Y { get; set; }
public GraphPoint(double x, double y)
{
X = x;
Y = y;
}
public object Clone()
{
var clone = new GraphPoint(X,Y);
return clone;
}
}
}