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

Function Pt3IsBetweenPt1AndPt2

renderers/agg/src/clipper.cpp:397–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395//------------------------------------------------------------------------------
396
397bool Pt3IsBetweenPt1AndPt2(const IntPoint pt1,
398 const IntPoint pt2, const IntPoint pt3)
399{
400 if (PointsEqual(pt1, pt3) || PointsEqual(pt2, pt3)) return true;
401 else if (pt1.X != pt2.X) return (pt1.X < pt3.X) == (pt3.X < pt2.X);
402 else return (pt1.Y < pt3.Y) == (pt3.Y < pt2.Y);
403}
404//------------------------------------------------------------------------------
405
406PolyPt* InsertPolyPtBetween(PolyPt* p1, PolyPt* p2, const IntPoint pt)

Callers 1

JoinCommonEdgesMethod · 0.85

Calls 1

PointsEqualFunction · 0.85

Tested by

no test coverage detected