You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
The used algorithm here is Ray casting algorithm. If the test point is on the border of the polygon, this algorithm will deliver unpredictable results; i.e. the result may be “inside” or “outside”. In general it depends on ray creation with respect to the coordinate system.
From wiki:
Unfortunately, this method won't work if the point is on the edge of the polygon.
For example, in polygon (-1, -1), (-1, 1), (1, 1), (1, -1):
For a given rect like
(-1, -1), (-1, 1), (1, 1), (1, -1)
the point (0,1) is not detected as inside of polygon.
How to detect it as insid of polygon?
The text was updated successfully, but these errors were encountered: