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

Function Round

renderers/agg/src/clipper.cpp:183–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181//------------------------------------------------------------------------------
182
183inline long64 Round(double val)
184{
185 if ((val < 0)) return static_cast<long64>(val - 0.5);
186 else return static_cast<long64>(val + 0.5);
187}
188//------------------------------------------------------------------------------
189
190inline long64 Abs(long64 val)

Callers 6

TopXFunction · 0.85
IntersectPointFunction · 0.85
BuildArcFunction · 0.85
OffsetPolygonsFunction · 0.85
conv_clipperMethod · 0.85
add_vertex_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected