Skip to content

Conversation

@michaelkirk
Copy link
Member

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

Alternative to #1465 that keeps in the spirit of boundary counting (and includes a test).

@michaelkirk michaelkirk force-pushed the mkirk/fix-triangle-coord-pos branch from 3ba2724 to 0a168b3 Compare December 12, 2025 01:10
let orientation = T::Ker::orient2d(l.start, l.end, *coord);
if orientation == Orientation::Collinear
&& point_in_rect(*coord, l.start, l.end)
&& coord.x != l.end.x
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously we were only checking the x value - but that broke down for vertical lines.

@michaelkirk michaelkirk requested a review from b4l December 12, 2025 01:12
Copy link
Member

@b4l b4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this edge case @michaelkirk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants