verse.utils.utils.rotated_rectangles_intersect

verse.utils.utils.rotated_rectangles_intersect(rect1: Tuple[ndarray | Sequence[float], float, float, float], rect2: Tuple[ndarray | Sequence[float], float, float, float]) bool

Do two rotated rectangles intersect?

Parameters:
  • rect1 – (center, length, width, angle)

  • rect2 – (center, length, width, angle)

Returns:

do they?