-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some simplifications #1296
Some simplifications #1296
Conversation
(turn.operations[0].seg_id.segment_index == 0 | ||
&& turn.operations[1].seg_id.segment_index == last_index); | ||
return turn.operations[0].seg_id.segment_index == 0 | ||
&& turn.operations[1].seg_id.segment_index == last_index; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what was meant here was that the second condition had 1
vs 0
instead.
But it's hard to guess. I didn't write it (I think). @awulkiew ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I kept the second condition with reversed 0
and 1
.
Out of curiosity, is it possible for the second condition to be true in the way turns are computed in boost geometry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think so. But maybe better to check that before merging it.
I'll try to check one of the coming days.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vissarion I forgot, and don't have the time to do it now in detail (it would require a quite specific testcase).
The operations are symmetric (have the same role) and unordered, so I'm quite sure it's right now.
Feel free to merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One question but good looks
c7a12cc
to
9694cb5
Compare
9694cb5
to
a4c05fd
Compare
No description provided.