points_inside_poly#
- glue.utils.geometry.points_inside_poly(x, y, vx, vy)[source]#
Test if coordinates
x
,y
fall inside polygon of verticesvx
,vy
.- Parameters:
- x, y~numpy.ndarray
Coordinates of the points to test
- vx, vy~numpy.ndarray
The vertices of the polygon
- Returns:
- contains~numpy.ndarray of bool
Array indicating whether each coordinate pair is inside the polygon.