Polygon.is_inside

Polygon.is_inside(point: tuple[ndarray, ndarray], for_all: bool = True) bool[source]

Check whether one or several points lie inside the polygon.

Parameters:
  • point (tuple[np.ndarray, np.ndarray]) – Point or set of points to test.

  • for_all (bool, optional) – If True, return a single boolean for all points.

Returns:

Inclusion test result.

Return type:

bool | np.ndarray