Add polygon shape

This commit is contained in:
Evgeny Redikultsev
2025-09-14 19:47:23 +05:00
parent c31e56869c
commit 35fccfaa11
56 changed files with 867 additions and 113 deletions

View File

@@ -11,8 +11,17 @@ namespace StructureHelperCommon.Models.Shapes
{
Id = id;
}
/// <summary>
/// Creates new vertex with id = new Guid
/// </summary>
/// <param name="x">Coordinate x of vertex</param>
/// <param name="y">Coordinate y of vertex</param>
public Vertex(double x, double y) : this(Guid.NewGuid())
{
Point = new Point2D() { X = x, Y = y };
}
public IPoint2D Point { get; set; }
public IPoint2D Point { get; set; } = new Point2D(Guid.NewGuid()) { X = 0, Y = 0};
}