dijkstra is now bleching fast

deleting from the grid is now bleaching fast
added new helper methods
many new test-cases
many new methods for geo classes and others
added a bunch of new grid-walkers
This commit is contained in:
2016-01-26 18:13:30 +01:00
parent b503fb9bdc
commit e6329e1db4
26 changed files with 824 additions and 179 deletions

View File

@@ -184,11 +184,12 @@ private:
Stair s;
Line2 dir = scaler.scale(line);
s.dir = (dir.p2 - dir.p1);
const float d = 9;
s.from.add(start.p1 + Point2(-d,-d));
s.from.add(start.p1 + Point2(+d,+d));
s.from.add(start.p2 + Point2(-d,-d));
s.from.add(start.p2 + Point2(+d,+d));
// const float d = 50;
s.start = start;
// s.from.add(start.p1 + Point2(-d,-d));
// s.from.add(start.p1 + Point2(+d,+d));
// s.from.add(start.p2 + Point2(-d,-d));
// s.from.add(start.p2 + Point2(+d,+d));
stairs.push_back(s);
}
}