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

Function InitEdge2

TheForceEngine/TFE_Polygon/clipper.cpp:729–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727//------------------------------------------------------------------------------
728
729void InitEdge2(TEdge& e, PolyType Pt)
730{
731 if (e.Curr.Y >= e.Next->Curr.Y)
732 {
733 e.Bot = e.Curr;
734 e.Top = e.Next->Curr;
735 } else
736 {
737 e.Top = e.Curr;
738 e.Bot = e.Next->Curr;
739 }
740 SetDx(e);
741 e.PolyTyp = Pt;
742}
743//------------------------------------------------------------------------------
744
745TEdge* RemoveEdge(TEdge* e)

Callers 1

AddPathMethod · 0.85

Calls 1

SetDxFunction · 0.85

Tested by

no test coverage detected