MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / PopScanline

Method PopScanline

CSharp/Clipper2Lib/Clipper.Engine.cs:812–827  ·  view source on GitHub ↗
(out long y)

Source from the content-addressed store, hash-verified

810 }
811
812 [MethodImpl(MethodImplOptions.AggressiveInlining)]
813 private bool PopScanline(out long y)
814 {
815 int cnt = _scanlineList.Count - 1;
816 if (cnt < 0)
817 {
818 y = 0;
819 return false;
820 }
821
822 y = _scanlineList[cnt];
823 _scanlineList.RemoveAt(cnt--);
824 while (cnt >= 0 && y == _scanlineList[cnt])
825 _scanlineList.RemoveAt(cnt--);
826 return true;
827 }
828
829 [MethodImpl(MethodImplOptions.AggressiveInlining)]
830 private bool HasLocMinAtY(long y)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected