MCPcopy Create free account
hub / github.com/MapServer/MapServer / FindSegment

Function FindSegment

renderers/agg/src/clipper.cpp:373–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371//------------------------------------------------------------------------------
372
373bool FindSegment(PolyPt* &pp, const IntPoint pt1, const IntPoint pt2)
374{
375 if (!pp) return false;
376 PolyPt* pp2 = pp;
377 do
378 {
379 if (PointsEqual(pp->pt, pt1) &&
380 (PointsEqual(pp->next->pt, pt2) || PointsEqual(pp->prev->pt, pt2)))
381 return true;
382 pp = pp->next;
383 }
384 while (pp != pp2);
385 return false;
386}
387//------------------------------------------------------------------------------
388
389Position GetPosition(const IntPoint pt1, const IntPoint pt2, const IntPoint pt)

Callers 1

JoinCommonEdgesMethod · 0.85

Calls 1

PointsEqualFunction · 0.85

Tested by

no test coverage detected