MCPcopy Create free account
hub / github.com/RenderKit/embree / equalityComparisonImpl

Method equalityComparisonImpl

tutorials/external/catch.hpp:5982–5986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5980 }
5981
5982 bool Approx::equalityComparisonImpl(const double other) const {
5983 // First try with fixed margin, then compute margin based on epsilon, scale and Approx's value
5984 // Thanks to Richard Harris for his help refining the scaled margin value
5985 return marginComparison(m_value, other, m_margin) || marginComparison(m_value, other, m_epsilon * (m_scale + std::fabs(m_value)));
5986 }
5987
5988 void Approx::setMargin(double newMargin) {
5989 CATCH_ENFORCE(newMargin >= 0,

Callers 1

operator ==Method · 0.80

Calls 1

marginComparisonFunction · 0.85

Tested by

no test coverage detected