wavespectra.core.utils.is_overlap#

wavespectra.core.utils.is_overlap(rect1, rect2)[source]#

Check if rectangles overlap.

Args:
  • rect1 (list): Bounding box of the 1st rectangle [l1, b1, r1, t1].

  • rect2 (list): Bounding box of the 2nd rectangle [l2, b2, r2, t2].

Returns:
  • True if the two rectangles overlap, False otherwise.