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

Method WithinAbsMatcher

tests/catch.hpp:9156–9160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9154namespace Matchers {
9155namespace Floating {
9156 WithinAbsMatcher::WithinAbsMatcher(double target, double margin)
9157 :m_target{ target }, m_margin{ margin } {
9158 CATCH_ENFORCE(margin >= 0, "Invalid margin: " << margin << '.'
9159 << " Margin has to be non-negative.");
9160 }
9161
9162 // Performs equivalent check of std::fabs(lhs - rhs) <= margin
9163 // 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