title: How to find the logic/algorithm behind matplotlib.path.Path()
body: <p>Is there any references, algorithm, the mathematical equations/logic behind the <strong>matplotlib.path.contains_point(points)</strong>.</p>
  <p>I have looked into background source code but found nothing.
  <a href="https://github.com/matplotlib/matplotlib/blob/v3.5.2/lib/matplotlib/path.py#L24-L1039" rel="nofollow noreferrer">https://github.com/matplotlib/matplotlib/blob/v3.5.2/lib/matplotlib/path.py#L24-L1039</a></p>
  <p>My code looks like this</p>
  <pre><code> #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 polygon or not
   path = matplotlib.path.Path(polygon_2)
   inside = path.contains_point(points_2)
  </code></pre>