MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / step

Function step

extern/Catch2/catch.hpp:11534–11543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11532
11533template <typename FP>
11534FP step(FP start, FP direction, uint64_t steps) {
11535 for (uint64_t i = 0; i < steps; ++i) {
11536#if defined(CATCH_CONFIG_GLOBAL_NEXTAFTER)
11537 start = Catch::nextafter(start, direction);
11538#else
11539 start = std::nextafter(start, direction);
11540#endif
11541 }
11542 return start;
11543}
11544
11545// Performs equivalent check of std::fabs(lhs - rhs) <= margin
11546// But without the subtraction to allow for INFINITY in comparison

Callers 6

describeMethod · 0.70
RealQZ.hFile · 0.50
timeStepMethod · 0.50
timeStepNoGUIMethod · 0.50
generateSamplesMethod · 0.50
generateSamplesMethod · 0.50

Calls 1

nextafterFunction · 0.85

Tested by

no test coverage detected