"use strict";

exports.__esModule = true;
exports.haveIntersection = haveIntersection;
function haveIntersection(entry, target) {
  const top = Math.max(target.top, entry.top);
  const left = Math.max(target.left, entry.left);
  const right = Math.min(target.left + target.width, entry.left + entry.width);
  const bottom = Math.min(target.top + target.height, entry.top + entry.height);
  return left < right && top < bottom;
}
//# sourceMappingURL=rectIntersection.js.map