edge collision now works again
This commit is contained in:
@ -70,7 +70,7 @@ bool Graph::crosses_edge(Vertex* a, Vertex* b)
|
||||
for (list<Vertex*>::iterator subcursor = v->neighbors.begin();
|
||||
subcursor != v->neighbors.end(); subcursor++)
|
||||
{
|
||||
Vertex* w = *cursor;
|
||||
Vertex* w = *subcursor;
|
||||
|
||||
if (MathUtils::lines_intersect(a->x, a->y, b->x, b->y,
|
||||
v->x, v->y, w->x, w->y))
|
||||
|
Reference in New Issue
Block a user