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

Function HorzSegmentsOverlap

TheForceEngine/TFE_Polygon/clipper.cpp:872–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870//------------------------------------------------------------------------------
871
872bool HorzSegmentsOverlap(cInt seg1a, cInt seg1b, cInt seg2a, cInt seg2b)
873{
874 if (seg1a > seg1b) std::swap(seg1a, seg1b);
875 if (seg2a > seg2b) std::swap(seg2a, seg2b);
876 return (seg1a < seg2b) && (seg2a < seg1b);
877}
878
879//------------------------------------------------------------------------------
880// ClipperBase class methods ...

Callers 2

ProcessHorizontalMethod · 0.85

Calls 1

swapFunction · 0.50

Tested by

no test coverage detected