is_point_in_convex_polygon
Check which points are contained in a convex polygon.
This may be more efficient than polygon.intersection(MultiPoint(points)) if the polygon has a low number of edges.
polygon.intersection(MultiPoint(points))
polygon (Polygon) – a triangle
Polygon
points (ndarray) – an (N, 2) coordinate array.
ndarray
(N, 2)
a boolean (N,) array
(N,)
Contents: