Diff of /matlab/isPos.m [000000] .. [b758a2]

Switch to unified view

a b/matlab/isPos.m
1
function b = isPos(X,Y,M,d)
2
    for i=1:size(M,1)
3
        r = (X-M(i,1))^2 + (Y-M(i,2))^2;
4
        if r < d*d
5
            b = true;
6
            return 
7
        end
8
        b = false;
9
        return
10
    end
11
end