MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / Poly2ContainsPoly1

Function Poly2ContainsPoly1

TheForceEngine/TFE_Polygon/clipper.cpp:526–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524//------------------------------------------------------------------------------
525
526bool 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
541bool SlopesEqual(const TEdge &e1, const TEdge &e2, bool UseFullInt64Range)

Callers 4

FixupFirstLefts1Method · 0.85
FixupFirstLefts2Method · 0.85
JoinCommonEdgesMethod · 0.85
DoSimplePolygonsMethod · 0.85

Calls 1

PointInPolygonFunction · 0.85

Tested by

no test coverage detected