def clip(xc):
    """ Compute the clipping mask from clipping coordinates.
    
        Parameters
        ----------
        xc : array_like
           position in clipping coordinate.
    
        Returns
        -------
        mask : array_like
           True for inside, False for outside.

    """
    return ((xc >= -1) & (xc <= 1)).all(axis=-1)
