MCPcopy Create free account
hub / github.com/RenderKit/oidn / WithinAbsMatcher

Method WithinAbsMatcher

external/catch.hpp:11559–11563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11557 };
11558
11559 WithinAbsMatcher::WithinAbsMatcher(double target, double margin)
11560 :m_target{ target }, m_margin{ margin } {
11561 CATCH_ENFORCE(margin >= 0, "Invalid margin: " << margin << '.'
11562 << " Margin has to be non-negative.");
11563 }
11564
11565 // Performs equivalent check of std::fabs(lhs - rhs) <= margin
11566 // But without the subtraction to allow for INFINITY in comparison

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected