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

Function SlopesEqual

renderers/agg/src/clipper.cpp:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131//------------------------------------------------------------------------------
132
133bool SlopesEqual(TEdge &e1, TEdge &e2)
134{
135 if (e1.ybot == e1.ytop) return (e2.ybot == e2.ytop);
136 else if (e2.ybot == e2.ytop) return false;
137 else return (e1.ytop - e1.ybot)*(e2.xtop - e2.xbot) -
138 (e1.xtop - e1.xbot)*(e2.ytop - e2.ybot) == 0;
139}
140//------------------------------------------------------------------------------
141
142bool SlopesEqual(const IntPoint pt1, const IntPoint pt2, const IntPoint pt3)

Callers 7

IntersectPointFunction · 0.85
AddPolygonMethod · 0.85
ProcessHorizontalMethod · 0.85
UpdateEdgeIntoAELMethod · 0.85
FixupOutPolygonFunction · 0.85
FixSpikesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected