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

Method SwapPositionsInAEL

CPP/Clipper2Lib/src/clipper.engine.cpp:2482–2494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2480 }
2481
2482 void ClipperBase::SwapPositionsInAEL(Active& e1, Active& e2)
2483 {
2484 //preconditon: e1 must be immediately to the left of e2
2485 Active* next = e2.next_in_ael;
2486 if (next) next->prev_in_ael = &e1;
2487 Active* prev = e1.prev_in_ael;
2488 if (prev) prev->next_in_ael = &e2;
2489 e2.prev_in_ael = prev;
2490 e2.next_in_ael = &e1;
2491 e1.prev_in_ael = &e2;
2492 e1.next_in_ael = next;
2493 if (!e2.prev_in_ael) actives_ = &e2;
2494 }
2495
2496 inline OutPt* GetLastOp(const Active& hot_edge)
2497 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected