is_point_in_bounds

is_point_in_bounds(bounds, points)[source]

Check which points are contained in the given bounds.

Parameters
  • bounds (tuple) – a tuple (minx, miny, maxx, maxy)

  • points (ndarray) – an (N, 2) coordinate array.

Return type

ndarray

Returns

a boolean (N,) array