Добавлены сервисы CalculationService, PrimitiveService, Common-сборка с типами
Необходимо реализовать в дальнейшем GetInnerPoints в PrimitiveService
This commit is contained in:
11
StructureHelperCommon/Models/Shapes/Center.cs
Normal file
11
StructureHelperCommon/Models/Shapes/Center.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public class Center : ICenter
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public double X { get; set; }
|
||||
/// <inheritdoc />
|
||||
public double Y { get; set; }
|
||||
}
|
||||
}
|
||||
20
StructureHelperCommon/Models/Shapes/ICenter.cs
Normal file
20
StructureHelperCommon/Models/Shapes/ICenter.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for point of center of some shape
|
||||
/// Интерфейс для точки центра некоторой формы
|
||||
/// </summary>
|
||||
public interface ICenter
|
||||
{
|
||||
/// <summary>
|
||||
/// Coordinate of center of rectangle by local axis X, m
|
||||
/// Координата центра вдоль локальной оси X, м
|
||||
/// </summary>
|
||||
double X { get;}
|
||||
/// <summary>
|
||||
/// Coordinate of center of rectangle by local axis Y, m
|
||||
/// Координата центра вдоль локальной оси Y, м
|
||||
/// </summary>
|
||||
double Y { get;}
|
||||
}
|
||||
}
|
||||
8
StructureHelperCommon/Models/Shapes/ICenterShape.cs
Normal file
8
StructureHelperCommon/Models/Shapes/ICenterShape.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public interface ICenterShape
|
||||
{
|
||||
ICenter Center {get;}
|
||||
IShape Shape { get;}
|
||||
}
|
||||
}
|
||||
7
StructureHelperCommon/Models/Shapes/ICircle.cs
Normal file
7
StructureHelperCommon/Models/Shapes/ICircle.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public interface ICircle : IShape
|
||||
{
|
||||
double Diameter { get; set; }
|
||||
}
|
||||
}
|
||||
7
StructureHelperCommon/Models/Shapes/IPoint.cs
Normal file
7
StructureHelperCommon/Models/Shapes/IPoint.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public interface IPoint : IShape
|
||||
{
|
||||
double Area { get; set; }
|
||||
}
|
||||
}
|
||||
18
StructureHelperCommon/Models/Shapes/IRectangle.cs
Normal file
18
StructureHelperCommon/Models/Shapes/IRectangle.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public interface IRectangle : IShape
|
||||
{
|
||||
/// <summary>
|
||||
/// Width of rectangle, m
|
||||
/// </summary>
|
||||
double Width { get; }
|
||||
/// <summary>
|
||||
/// Height of rectangle, m
|
||||
/// </summary>
|
||||
double Height { get; }
|
||||
/// <summary>
|
||||
/// Angle of rotating rectangle, rad
|
||||
/// </summary>
|
||||
double Angle { get; }
|
||||
}
|
||||
}
|
||||
6
StructureHelperCommon/Models/Shapes/IShape.cs
Normal file
6
StructureHelperCommon/Models/Shapes/IShape.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public interface IShape
|
||||
{
|
||||
}
|
||||
}
|
||||
7
StructureHelperCommon/Models/Shapes/Point.cs
Normal file
7
StructureHelperCommon/Models/Shapes/Point.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
public class Point : IPoint
|
||||
{
|
||||
public double Area { get; set; }
|
||||
}
|
||||
}
|
||||
13
StructureHelperCommon/Models/Shapes/Rectangle.cs
Normal file
13
StructureHelperCommon/Models/Shapes/Rectangle.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace StructureHelperCommon.Models.Shapes
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public class Rectangle : IRectangle
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public double Width { get; set; }
|
||||
/// <inheritdoc />
|
||||
public double Height { get; set; }
|
||||
/// <inheritdoc />
|
||||
public double Angle { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user