Force combination was added

This commit is contained in:
Evgeny Redikultsev
2022-11-27 17:04:34 +05:00
parent c5e503252e
commit 96b331f14c
52 changed files with 427 additions and 214 deletions

View File

@@ -2,7 +2,7 @@
{
public interface ICenterShape
{
ICenter Center {get;}
IPoint2D Center {get;}
IShape Shape { get;}
}
}

View File

@@ -8,8 +8,8 @@ namespace StructureHelperCommon.Models.Shapes
{
public interface ILineShape : IShape
{
ICenter StartPoint { get; set; }
ICenter EndPoint { get; set; }
IPoint2D StartPoint { get; set; }
IPoint2D EndPoint { get; set; }
double Thickness { get; set; }
}
}

View File

@@ -4,7 +4,7 @@
/// Interface for point of center of some shape
/// Интерфейс для точки центра некоторой формы
/// </summary>
public interface ICenter
public interface IPoint2D
{
/// <summary>
/// Coordinate of center of rectangle by local axis X, m

View File

@@ -10,16 +10,16 @@ namespace StructureHelperCommon.Models.Shapes
public class LineShape : ILineShape
{
/// <inheritdoc />
public ICenter StartPoint { get; set; }
public IPoint2D StartPoint { get; set; }
/// <inheritdoc />
public ICenter EndPoint { get; set; }
public IPoint2D EndPoint { get; set; }
/// <inheritdoc />
public double Thickness { get; set; }
public LineShape()
{
StartPoint = new Center();
EndPoint = new Center();
StartPoint = new Point2D();
EndPoint = new Point2D();
Thickness = 0;
}
}

View File

@@ -1,7 +1,7 @@
namespace StructureHelperCommon.Models.Shapes
{
/// <inheritdoc />
public class Center : ICenter
public class Point2D : IPoint2D
{
/// <inheritdoc />
public double X { get; set; }