(self, dim)
Mirrors the layout along the given dimension(s)

        @param dim: the list of dimensions or a single dimension
Mirrors the layout along the given dimension(s)
Mirrors the layout along the given dimension ( s )
def mirror(self, dim):
        """Mirrors the layout along the given dimension(s)

        @param dim: the list of dimensions or a single dimension
        """
        if isinstance(dim, int):
            dim = [dim]
        else:
            dim = [int(x) for x in dim]

        for current_dim in dim:
            for row in self._coords:
                row[current_dim] *= -1
def mirror ( self , dim ) : if isinstance ( dim , int ) : dim = [ dim ] else : dim = [ int ( x ) for x in dim ] for current_dim in dim : for row in self . _coords : row [ current_dim ] *= - 1