enlargedArea method

double enlargedArea(
  1. RBushBox b
)

Calculates area for an extendes bounding box that would cover both this one and b. See extend for the extension method.

Implementation

double enlargedArea(RBushBox b) {
  return (max(b.maxX, maxX) - min(b.minX, minX)) *
      (max(b.maxY, maxY) - min(b.minY, minY));
}