verse.utils.utils.point_in_rectangle

verse.utils.utils.point_in_rectangle(point: ndarray | Sequence[float], rect_min: ndarray | Sequence[float], rect_max: ndarray | Sequence[float]) bool

Check if a point is inside a rectangle

Parameters:
  • point – a point (x, y)

  • rect_min – x_min, y_min

  • rect_max – x_max, y_max