def translate(self, dx, dy):
        """
        Move the polygons from one place to another

        Parameters
        ----------
        dx : number
            distance to move in the x-direction
        dy : number
            distance to move in the y-direction

        Returns
        -------
        out : ``PolygonSet``
            This object.
        """
        vec = numpy.array((dx, dy))
        self.polygons = [points + vec for points in self.polygons]
        return self
def translate ( self , dx , dy ) : vec = numpy . array ( ( dx , dy ) ) self . polygons = [ points + vec for points in self . polygons ] return self
Move the polygons from one place to another

        Parameters
        ----------
        dx : number
            distance to move in the x-direction
        dy : number
            distance to move in the y-direction

        Returns
        -------
        out : ``PolygonSet``
            This object.