MCPcopy
hub / github.com/tdewolff/canvas / Pop

Method Pop

path_intersection.go:456–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

454}
455
456func (q *SweepEvents) Pop() *SweepPoint {
457 n := len(*q) - 1
458 q.Swap(0, n)
459 q.down(0, n)
460
461 items := (*q)[n]
462 *q = (*q)[:n]
463 return items
464}
465
466//func (q *SweepEvents) Fix(i int) {
467// if !q.down(i, len(*q)) {

Callers 2

bentleyOttmannFunction · 0.95
relateFunction · 0.95

Calls 2

SwapMethod · 0.95
downMethod · 0.95

Tested by

no test coverage detected