| 415 | //========================================================================== |
| 416 | |
| 417 | int insidePoly(double x, double y, const DVector2* points, int count) |
| 418 | { |
| 419 | int64_t acc = 1; |
| 420 | for (int i = 0; i < count; i++) |
| 421 | { |
| 422 | int j = (i + 1) % count; |
| 423 | acc ^= checkforinside(x, y, points[i], points[j]); |
| 424 | } |
| 425 | return acc < 0; |
| 426 | } |
| 427 | |
| 428 | //========================================================================== |
| 429 | // |
no test coverage detected