public BoundingBox intersectWith(BoundingBox bb){
  latMin=Math.max(latMin,bb.latMin);
  lonMin=Math.max(lonMin,bb.lonMin);
  latMax=Math.min(latMax,bb.latMax);
  lonMax=Math.min(lonMax,bb.lonMax);
  return this;
}

public BoundingBox intersectWith ( BoundingBox bb ) { latMin = Math . max ( latMin , bb . latMin ) ; lonMin = Math . max ( lonMin , bb . lonMin ) ; latMax = Math . min ( latMax , bb . latMax ) ; lonMax = Math . min ( lonMax , bb . lonMax ) ; return this ; }
adjusts the box so that the result is the intersection of both boxes .
