Crack Calculator was added

This commit is contained in:
Evgeny Redikultsev
2023-07-16 17:21:28 +05:00
parent 3e0e51d0c9
commit d7a4b1f0a7
108 changed files with 1523 additions and 565 deletions

View File

@@ -1,13 +0,0 @@
using StructureHelperCommon.Models.Calculators;
namespace StructureHelperCommon.Services.Calculations
{
public static class AccuracyService
{
public static void CopyProperties(IAccuracy source, IAccuracy target)
{
target.IterationAccuracy = source.IterationAccuracy;
target.MaxIterationCount = source.MaxIterationCount;
}
}
}

View File

@@ -1,17 +0,0 @@
using StructureHelperCommon.Models.Sections;
namespace StructureHelperCommon.Services.Sections
{
public static class CompressedMemberServices
{
public static void CopyProperties(ICompressedMember source, ICompressedMember target)
{
target.Buckling = source.Buckling;
target.GeometryLength = source.GeometryLength;
target.LengthFactorX = source.LengthFactorX;
target.DiagramFactorX = source.DiagramFactorX;
target.LengthFactorY = source.LengthFactorY;
target.DiagramFactorY = source.DiagramFactorY;
}
}
}

View File

@@ -1,27 +0,0 @@
using StructureHelperCommon.Models.Shapes;
namespace StructureHelperCommon.Services.ShapeServices
{
public static class ShapeService
{
public static void CopyLineProperties(ILineShape source, ILineShape target)
{
target.StartPoint.X = source.StartPoint.X;
target.StartPoint.Y = source.StartPoint.Y;
target.EndPoint.X = source.EndPoint.X;
target.EndPoint.Y = source.EndPoint.Y;
}
public static void CopyRectangleProperties(IRectangleShape source, IRectangleShape target)
{
target.Width = source.Width;
target.Height = source.Height;
target.Angle = source.Angle;
}
public static void CopyCircleProperties(ICircleShape source, ICircleShape target)
{
target.Diameter = source.Diameter;
}
}
}