'which algorithm/mathematical logic is behind matplotlib.path.Path method
I find if the point is inside the polygon or outside using the matplotlib.path.Path method
#for point inside polygon
#The ploygon
polygon_2=list(zip(MRds, NRds))
#the point
points_2 =(MEds,NEds)
#finding if the point is inside the ploygon or not
path = matplotlib.path.Path(polygon_2)
inside = path.contains_point(points_2)
The things i want to know, if possible with references -the mathematical equations/logic behind the path.contains_point(points_2)
-the algorithm behind the matplotlib.path.Path(polygon_2)
I have looked in the help as well, but it does not state the mathematical notation or reference to the original algorithm. I originally need references for publications.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
