| 524 | //------------------------------------------------------------------------------ |
| 525 | |
| 526 | bool Poly2ContainsPoly1(OutPt *OutPt1, OutPt *OutPt2) |
| 527 | { |
| 528 | OutPt* op = OutPt1; |
| 529 | do |
| 530 | { |
| 531 | //nb: PointInPolygon returns 0 if false, +1 if true, -1 if pt on polygon |
| 532 | int res = PointInPolygon(op->Pt, OutPt2); |
| 533 | if (res >= 0) return res > 0; |
| 534 | op = op->Next; |
| 535 | } |
| 536 | while (op != OutPt1); |
| 537 | return true; |
| 538 | } |
| 539 | //---------------------------------------------------------------------- |
| 540 | |
| 541 | bool SlopesEqual(const TEdge &e1, const TEdge &e2, bool UseFullInt64Range) |
no test coverage detected