function [b] = areAdjacent(ps, q)
% Returns the truth value if the points (rows) in ps are adjacent to point q.

    b = max(abs(ps - repmat(q, size(ps,1), 1)), [], 2) <= 1;
end
