extend method

dynamic extend(
  1. RBushBox b
)

Extends this box's bounds to cover b.

Implementation

extend(RBushBox b) {
  minX = min(minX, b.minX);
  minY = min(minY, b.minY);
  maxX = max(maxX, b.maxX);
  maxY = max(maxY, b.maxY);
}