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

Function SetDx

renderers/agg/src/clipper.cpp:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149//------------------------------------------------------------------------------
150
151void SetDx(TEdge &e)
152{
153 if (e.ybot == e.ytop) e.dx = horizontal;
154 else e.dx =
155 static_cast<double>(e.xtop - e.xbot) / static_cast<double>(e.ytop - e.ybot);
156}
157//---------------------------------------------------------------------------
158
159double GetDx(const IntPoint pt1, const IntPoint pt2)

Callers 1

InitEdgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected