Skip to content

Commit

Permalink
good lord
Browse files Browse the repository at this point in the history
  • Loading branch information
sz3 committed Mar 25, 2022
1 parent 8c23f60 commit e1fdcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/extractor/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ bool Scanner::sort_top_to_bottom(std::vector<Anchor>& anchors)
incoming_edge = {-incoming_edge.y(), incoming_edge.x()}; // rotate
point<int> overlap = departing_edge - incoming_edge;

if (overlap.dot(overlap) < edges[departing_edge].dot(edges[departing_edge]))
if (overlap.dot(overlap) < departing_edge.dot(departing_edge))
top_right = fix_index<3>(top_left + 1);
else
top_right = fix_index<3>(top_left - 1);
Expand Down

0 comments on commit e1fdcc7

Please sign in to comment.