@staticmethod
def _constraint_wrapper(func, x_meas, kwargs, p):
    """
        Wrapper function that point to constraint function.

        :param func: constraint function.
        :param kwargs: key arguments to pass on to constraint function
        :param p: particle used to calculate constraint function
        :return: If this particle is feasable or not.
        """
    return func(p.pos, x_meas, **kwargs)
