Force combination was added
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public interface ICenterShape
|
||||
{
|
||||
ICenter Center {get;}
|
||||
IPoint2D Center {get;}
|
||||
IShape Shape { get;}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public class Center : ICenter
|
||||
public class Point2D : IPoint2D
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public double X { get; set; }
|
||||
Reference in New Issue
Block a user