updating polygon lib code. A bug removed.

This commit is contained in:
charras 2008-10-12 15:30:23 +00:00
parent b7db0ef850
commit 72fae7e9e3
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ using namespace std;
* It run a semi-infinite line horizontally (increasing x, fixed y) * It run a semi-infinite line horizontally (increasing x, fixed y)
* out from the test point, and count how many edges it crosses. * out from the test point, and count how many edges it crosses.
* At each crossing, the ray switches between inside and outside. * At each crossing, the ray switches between inside and outside.
* If odd nimber, the test point is inside the polygon * If odd count, the test point is inside the polygon
* This is called the Jordan curve theorem, or sometimes referred to as the "even-odd" test. * This is called the Jordan curve theorem, or sometimes referred to as the "even-odd" test.
*/ */