1
0
This commit is contained in:
2019-05-22 12:25:32 +02:00
parent 403a4e4f24
commit c5e7ad0c4f

View File

@@ -79,17 +79,7 @@ namespace TMI_practicum
solved.Contains(new Intersection(intersection.X, intersection.Y - 1e-15)) solved.Contains(new Intersection(intersection.X, intersection.Y - 1e-15))
) continue; ) continue;
bool found = false; bool found = solved.Any(ints => Math.Abs(ints.X - intersection.X) < 1e-12 && Math.Abs(ints.Y - intersection.Y) < 1e-12);
foreach (var ints in solved)
{
if (Math.Abs(ints.X - intersection.X) < 1e-12 &&
Math.Abs(ints.Y - intersection.Y) < 1e-12)
{
found = true;
break;
}
}
if (found) continue; if (found) continue;