(xtri, ytri, xy)
| 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 |
no test coverage detected
searching dependent graphs…