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

Function PolygonBottom

renderers/agg/src/clipper.cpp:359–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357//------------------------------------------------------------------------------
358
359PolyPt* PolygonBottom(PolyPt* pp)
360{
361 PolyPt* p = pp->next;
362 PolyPt* result = pp;
363 while (p != pp)
364 {
365 if (p->pt.Y > result->pt.Y) result = p;
366 else if (p->pt.Y == result->pt.Y && p->pt.X < result->pt.X) result = p;
367 p = p->next;
368 }
369 return result;
370}
371//------------------------------------------------------------------------------
372
373bool FindSegment(PolyPt* &pp, const IntPoint pt1, const IntPoint pt2)

Callers 1

AppendPolygonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected