MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / operator()

Method operator()

tests/catch.hpp:2735–2741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2733
2734 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
2735 Approx operator()( T const& value ) {
2736 Approx approx( static_cast<double>(value) );
2737 approx.m_epsilon = m_epsilon;
2738 approx.m_margin = m_margin;
2739 approx.m_scale = m_scale;
2740 return approx;
2741 }
2742
2743 template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
2744 explicit Approx( T const& value ): Approx(static_cast<double>(value))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected