mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Minor refactoring
This commit is contained in:
parent
b719a14d29
commit
5c815e951e
5 changed files with 32 additions and 35 deletions
|
|
@ -81,7 +81,7 @@ namespace MapControl
|
|||
return numIntersections > 0;
|
||||
}
|
||||
|
||||
private static bool GetIntersection(ref Point p1, ref Point p2, Point p3, Point p4, Func<Point, bool> condition)
|
||||
private static bool GetIntersection(ref Point p1, ref Point p2, Point p3, Point p4, Predicate<Point> predicate)
|
||||
{
|
||||
var intersection = GetIntersection(p1, p2, p3, p4);
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ namespace MapControl
|
|||
return false;
|
||||
}
|
||||
|
||||
if (condition(p1))
|
||||
if (predicate(p1))
|
||||
{
|
||||
p1 = intersection.Value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue