wavespectra.core.utils.is_overlap#

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

Check if rectangles overlap.

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

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

Returns:

  • True if the two rectangles overlap, False otherwise.