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

Function tris_contain_point

lib/matplotlib/tests/test_triangulation.py:220–222  ·  view source on GitHub ↗
(triang, xy)

Source from the content-addressed store, hash-verified

218 # triangulation contain the test point xy. Avoid calling with a point that
219 # lies on or very near to an edge of any triangle in the triangulation.
220 def tris_contain_point(triang, xy):
221 return sum(tri_contains_point(triang.x[tri], triang.y[tri], xy)
222 for tri in triang.triangles)
223
224 # Using matplotlib.delaunay, an invalid triangulation is created with
225 # overlapping triangles; qhull is OK.

Callers 1

test_delaunay_robustFunction · 0.85

Calls 1

tri_contains_pointFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…