Skip to content

Query contains edge #383

Answered by smcallis
dm356 asked this question in Q&A
Sep 27, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

It should give the same answers since it uses the same crossing edge predicates. To clarify you'll have to do a two step process:

  1. Check that the edge doesn't cross any other edges (if this is true, the edge is entirely contained or disjoint from the polygon)
  2. Break the tie by checking one of the vertices.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dm356
Comment options

Comment options

You must be logged in to vote
1 reply
@dm356
Comment options

Answer selected by dm356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants