rectangleRectangle abstract method

bool rectangleRectangle(
  1. Vector2 centerA,
  2. Vector2 exA,
  3. Vector2 eyA,
  4. Vector2 centerB,
  5. Vector2 exB,
  6. Vector2 eyB,
)

Returns true if two rectangles overlap, given their world-space centers and, for each, the vectors from its center to the midpoints of its right (exA/exB) and bottom (eyA/eyB) edges.

Implementation

bool rectangleRectangle(
  Vector2 centerA,
  Vector2 exA,
  Vector2 eyA,
  Vector2 centerB,
  Vector2 exB,
  Vector2 eyB,
);