From: Bruno Luong on
Another way is draw a half-line (L) from P. If (L) intersects S odd times (1, 3, 5...), the P is inside, and vice-versa.

Bruno
From: Dingzhou Cao on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hoiclc$dui$1(a)fred.mathworks.com>...
> Another way is draw a half-line (L) from P. If (L) intersects S odd times (1, 3, 5...), the P is inside, and vice-versa.
>
> Bruno

Hi Bruno,

This seems works. Thanks so much for you help!