MCPcopy Create free account
hub / github.com/axmolengine/axmol / SwapOutrecs

Function SwapOutrecs

3rdparty/clipper2/src/clipper.engine.cpp:336–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335
336 void SwapOutrecs(Active& e1, Active& e2)
337 {
338 OutRec* or1 = e1.outrec;
339 OutRec* or2 = e2.outrec;
340 if (or1 == or2)
341 {
342 Active* e = or1->front_edge;
343 or1->front_edge = or1->back_edge;
344 or1->back_edge = e;
345 return;
346 }
347 if (or1)
348 {
349 if (&e1 == or1->front_edge)
350 or1->front_edge = &e2;
351 else
352 or1->back_edge = &e2;
353 }
354 if (or2)
355 {
356 if (&e2 == or2->front_edge)
357 or2->front_edge = &e1;
358 else
359 or2->back_edge = &e1;
360 }
361 e1.outrec = or2;
362 e2.outrec = or1;
363 }
364
365
366 double Area(OutPt* op)

Callers 1

IntersectEdgesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected