MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / makeRatio

Function makeRatio

tests/catch.hpp:13240–13243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13238};
13239
13240std::size_t makeRatio(std::size_t number, std::size_t total) {
13241 std::size_t ratio = total > 0 ? CATCH_CONFIG_CONSOLE_WIDTH * number / total : 0;
13242 return (ratio == 0 && number > 0) ? 1 : ratio;
13243}
13244
13245std::size_t& findMax(std::size_t& i, std::size_t& j, std::size_t& k) {
13246 if (i > j && i > k)

Callers 1

printTotalsDividerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected