Add extended force tuple result

This commit is contained in:
Evgeny Redikultsev
2025-11-03 13:58:27 +05:00
parent 871be6cb46
commit b28606003a
24 changed files with 354 additions and 8 deletions

View File

@@ -0,0 +1,15 @@
using StructureHelperCommon.Infrastructures.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperCommon.Models.Shapes
{
public interface IPoint2DRange : ISaveable
{
IPoint2D StartPoint { get; set; }
IPoint2D EndPoint { get; set; }
}
}

View File

@@ -74,7 +74,7 @@ namespace StructureHelperCommon.Models.Shapes
// compute angle from each criterion
double byAngle = options.AngleStepRadians;
double byCount = arcAngle / options.SegmentCount;
double byLength = 2 * Math.Asin(options.MaxSegmentLength / (2 * radius));
double byLength = 2 * Math.Asin(options.MaxSegmentLength * metresToMillimeters / (2 * radius));
return options.Mode switch
{

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperCommon.Models.Shapes
{
public class Point2DRange : IPoint2DRange
{
public Guid Id { get; }
public IPoint2D StartPoint { get; set; } = new Point2D();
public IPoint2D EndPoint { get; set; } = new Point2D();
public Point2DRange(Guid id)
{
Id = id;
}
}
}