CubbyFlow::SimilarTo< T > Struct Template Reference

True if similar. More...

#include <Core/Utils/Functors.hpp>

Public Member Functions

constexpr SimilarTo (double _tolerance=std::numeric_limits< double >::epsilon())
 
constexpr bool operator() (const T &a, const T &b) const
 

Public Attributes

double tolerance
 

Detailed Description

template<typename T>
struct CubbyFlow::SimilarTo< T >

True if similar.

Constructor & Destructor Documentation

◆ SimilarTo()

template<typename T >
constexpr CubbyFlow::SimilarTo< T >::SimilarTo ( double  _tolerance = std::numeric_limits<double>::epsilon())
inline

Member Function Documentation

◆ operator()()

template<typename T >
constexpr bool CubbyFlow::SimilarTo< T >::operator() ( const T &  a,
const T &  b 
) const

Member Data Documentation

◆ tolerance

template<typename T >
double CubbyFlow::SimilarTo< T >::tolerance

The documentation for this struct was generated from the following files: