refactor
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user