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

Function Round

TheForceEngine/TFE_Polygon/clipper.cpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134//------------------------------------------------------------------------------
135
136inline cInt Round(double val)
137{
138 if ((val < 0)) return static_cast<cInt>(val - 0.5);
139 else return static_cast<cInt>(val + 0.5);
140}
141//------------------------------------------------------------------------------
142
143inline cInt Abs(cInt val)

Callers 7

TopXFunction · 0.85
IntersectPointFunction · 0.85
DoOffsetMethod · 0.85
OffsetPointMethod · 0.85
DoSquareMethod · 0.85
DoMiterMethod · 0.85
DoRoundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected