MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / tri_contains_point

Function tri_contains_point

lib/matplotlib/tests/test_triangulation.py:213–215  ·  view source on GitHub ↗
(xtri, ytri, xy)

Source from the content-addressed store, hash-verified

211 # (xtri, ytri) contains the test point xy. Avoid calling with a point that
212 # lies on or very near to an edge of the triangle.
213 def tri_contains_point(xtri, ytri, xy):
214 tri_points = np.vstack((xtri, ytri)).T
215 return Path(tri_points).contains_point(xy)
216
217 # Utility function that returns how many triangles of the specified
218 # triangulation contain the test point xy. Avoid calling with a point that

Callers 1

tris_contain_pointFunction · 0.85

Calls 2

PathClass · 0.90
contains_pointMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…