public function getHomothety($factor)
    {
        $bounds = new LatLngBounds();
        $lat = $this->getCenterLat();
        $lng = $this->getCenterLng();
        $bounds->getNorthEast()->setLat($factor * $this->getNorthEast()->getLat() + $lat * (1 - $factor));
        $bounds->getSouthWest()->setLat($factor * $this->getSouthWest()->getLat() + $lat * (1 - $factor));
        $bounds->getNorthEast()->setLng($factor * $this->getNorthEast()->getLng() + $lng * (1 - $factor));
        $bounds->getSouthWest()->setLng($factor * $this->getSouthWest()->getLng() + $lng * (1 - $factor));

        return $bounds;
    }
public function getHomothety($factor)
    {
        $bounds = new LatLngBounds();
        $lat = $this->getCenterLat();
        $lng = $this->getCenterLng();
        $bounds->getNorthEast()->setLat($factor * $this->getNorthEast()->getLat() + $lat * (1 - $factor));
        $bounds->getSouthWest()->setLat($factor * $this->getSouthWest()->getLat() + $lat * (1 - $factor));
        $bounds->getNorthEast()->setLng($factor * $this->getNorthEast()->getLng() + $lng * (1 - $factor));
        $bounds->getSouthWest()->setLng($factor * $this->getSouthWest()->getLng() + $lng * (1 - $factor));

        return $bounds;
    }
public function getHomothety ( $ factor ) { $ bounds = new LatLngBounds ( ) ; $ lat = $ this -> getCenterLat ( ) ; $ lng = $ this -> getCenterLng ( ) ; $ bounds -> getNorthEast ( ) -> setLat ( $ factor * $ this -> getNorthEast ( ) -> getLat ( ) + $ lat * ( 1 - $ factor ) ) ; $ bounds -> getSouthWest ( ) -> setLat ( $ factor * $ this -> getSouthWest ( ) -> getLat ( ) + $ lat * ( 1 - $ factor ) ) ; $ bounds -> getNorthEast ( ) -> setLng ( $ factor * $ this -> getNorthEast ( ) -> getLng ( ) + $ lng * ( 1 - $ factor ) ) ; $ bounds -> getSouthWest ( ) -> setLng ( $ factor * $ this -> getSouthWest ( ) -> getLng ( ) + $ lng * ( 1 - $ factor ) ) ; return $ bounds ; }
Does a homothety transformation on the bounds, centered on the center of the bounds

@param float $factor
@return LatLngBounds $bounds
Does a homothety transformation on the bounds centered on the center of the bounds