rectToRect static method

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

Implementation

static bool rectToRect(AABB a, AABB b) =>
    a.right >= b.left && a.left <= b.right && a.bottom >= b.top && a.top <= b.bottom;