k=insideCPS(CPL,PL);
CPL : | Vertex list of the contour | |
PL : | Point to check |
k : | +1==inside, -1==outside, 0== on the contour |
CPL=[PLsquare(6,4);nan nan;PLsquare(3,2)];
insideCPS(CPL,[-1 -1; -1 0; -1 1.5; -1 2.5; -1 -2])
insideCPS(CPL,[-1 -1; -1 0; -1 1.5; -1 2.5; -1 -2]+[-2 0])