MCPcopy Create free account
hub / github.com/Kitware/VTK / Round

Function Round

Common/Core/vtkMath.h:134–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 */
133#if 1
134 static int Round(float f) { return static_cast<int>(f + (f >= 0.0 ? 0.5 : -0.5)); }
135 static int Round(double f) { return static_cast<int>(f + (f >= 0.0 ? 0.5 : -0.5)); }
136#endif
137

Callers 15

Type RoundMethod · 0.85
Type, N> RoundMethod · 0.85
Type, 4> RoundMethod · 0.85
Type, 3> RoundMethod · 0.85
Type, 2> RoundMethod · 0.85
RemainderFunction · 0.85
TestRoundMethod · 0.85
PlotMethod · 0.85
operator()Method · 0.85
GetScreenPointMethod · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by 3

TestRoundMethod · 0.68
TestRoundFunction · 0.68