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

Function ReverseHorizontal

TheForceEngine/TFE_Polygon/clipper.cpp:756–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754//------------------------------------------------------------------------------
755
756inline void ReverseHorizontal(TEdge &e)
757{
758 //swap horizontal edges' Top and Bottom x's so they follow the natural
759 //progression of the bounds - ie so their xbots will align with the
760 //adjoining lower edge. [Helpful in the ProcessHorizontal() method.]
761 std::swap(e.Top.X, e.Bot.X);
762#ifdef use_xyz
763 std::swap(e.Top.Z, e.Bot.Z);
764#endif
765}
766//------------------------------------------------------------------------------
767
768void SwapPoints(IntPoint &pt1, IntPoint &pt2)

Callers 2

ProcessBoundMethod · 0.85
AddPathMethod · 0.85

Calls 1

swapFunction · 0.50

Tested by

no test coverage detected