海龟迷途部分图形

This commit is contained in:
艾竹
2023-05-16 22:53:11 +08:00
parent 65e18759c9
commit 9e8981176a
2 changed files with 76 additions and 10 deletions

View File

@@ -21,7 +21,10 @@ namespace AIStudio.Wpf.DiagramDesigner
foreach (var item in angleAndWidth)
{
nextPoint = GetEndPointByTrigonometric(thisPoint, thisAngle, item.Item1);
points.Add((Point)nextPoint);
//if (thisPoint != nextPoint)
{
points.Add(nextPoint);
}
thisPoint = nextPoint;
thisAngle = thisAngle + item.Item2;