Started with waypoints

This commit is contained in:
Yorick
2015-04-08 11:18:30 +02:00
parent 1f6811332e
commit 82a94ba456
8 changed files with 109 additions and 19 deletions
+12
View File
@@ -110,6 +110,18 @@ public class Path
}
return false;
}
public boolean intersectsRect(Rectangle2D rect)
{
for(Shape line : getPath())
{
if(line.intersects(rect))
{
return true;
}
}
return false;
}
/**
* Get array with line's from the points.