rectToRect static method

bool rectToRect(
  1. RectangleShape a,
  2. RectangleShape b
)

Implementation

static bool rectToRect(RectangleShape a, RectangleShape b) {
  return a.rect.overlaps(b.rect);
}