public function overlaps(LatLngBounds $other)
    {
        $southWest = $other->getSouthWest();
        $northEast = $other->getNorthEast();

        $latOverlaps = ($northEast->getLatitude() > $this->southWest->getLatitude())
            && ($southWest->getLatitude() < $this->northEast->getLatitude());

        $lngOverlaps = ($northEast->getLongitude() > $this->southWest->getLongitude())
            && ($southWest->getLongitude() < $northEast->getLongitude());

        return $latOverlaps && $lngOverlaps;
    }
public function overlaps(LatLngBounds $other)
    {
        $southWest = $other->getSouthWest();
        $northEast = $other->getNorthEast();

        $latOverlaps = ($northEast->getLatitude() > $this->southWest->getLatitude())
            && ($southWest->getLatitude() < $this->northEast->getLatitude());

        $lngOverlaps = ($northEast->getLongitude() > $this->southWest->getLongitude())
            && ($southWest->getLongitude() < $northEast->getLongitude());

        return $latOverlaps && $lngOverlaps;
    }
public function overlaps ( LatLngBounds $ other ) { $ southWest = $ other -> getSouthWest ( ) ; $ northEast = $ other -> getNorthEast ( ) ; $ latOverlaps = ( $ northEast -> getLatitude ( ) > $ this -> southWest -> getLatitude ( ) ) && ( $ southWest -> getLatitude ( ) < $ this -> northEast -> getLatitude ( ) ) ; $ lngOverlaps = ( $ northEast -> getLongitude ( ) > $ this -> southWest -> getLongitude ( ) ) && ( $ southWest -> getLongitude ( ) < $ northEast -> getLongitude ( ) ) ; return $ latOverlaps && $ lngOverlaps ; }
Check if bounds overlaps.

@param LatLngBounds $other The over bounds to check.

@return bool
Check if bounds overlaps .