Tiebreaker for snap-rounding examination order

This commit is contained in:
Erica Fischer
2023-11-14 13:24:36 -08:00
parent 8a996b9057
commit 9e46ac8c0e
6 changed files with 11 additions and 7 deletions
+6 -2
View File
@@ -323,9 +323,13 @@ struct scan_transition {
bool operator<(scan_transition const &s) const {
if (y < s.y) {
return true;
} else {
return false;
} else if (y == s.y) {
if (segment < s.segment) {
return true;
}
}
return false;
}
};