Skip to content

Doubt in Polygon Contains point #263

Answered by jmr
sreekanth-cb asked this question in Q&A
Discussion options

You must be logged in to vote

Even though the points lie outside the polygon,

How do you know the point is outside? S2Polygon::Contains(S2Point) is well exercised and unlikely to be wrong. It looks like your point is close to the boundary. S1Angle(point, polygon1.Project(point) ~ 0.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sreekanth-cb
Comment options

@jmr
Comment options

jmr Jul 18, 2022
Maintainer

@sreekanth-cb
Comment options

Answer selected by jmr
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