Add extrapolation, debug graphic limits

This commit is contained in:
Иван Ивашкин
2024-12-13 13:27:07 +05:00
parent 585eb9b86b
commit 7c9bc1856b
5 changed files with 17 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ namespace StructureHelperCommon.Models.Functions.Decorator
}
public override double GetByX(double xValue)
{
if (xValue > leftBound && xValue < rightBound)
if (xValue >= leftBound && xValue <= rightBound)
{
return base.GetByX(xValue);
}

View File

@@ -52,6 +52,14 @@ namespace StructureHelperCommon.Models.Functions.Decorator
{
graphLimitGraphPoint.Add(point);
}
else if (point.Y <= downBound)
{
graphLimitGraphPoint.Add(new GraphPoint(point.X, downBound));
}
else
{
graphLimitGraphPoint.Add(new GraphPoint(point.X, upBound));
}
}
graphLimitGraphPoint.Add(upPoint);
graphSettings.GraphPoints = graphLimitGraphPoint;