2 #ifndef HYDROData_Tool_HeaderFile
3 #define HYDROData_Tool_HeaderFile
5 #include <Precision.hxx>
16 inline bool ValuesEquals( const double& theFirst, const double& theSecond )
18 return theFirst > ( theSecond - Precision::Confusion() ) &&
19 theFirst < ( theSecond + Precision::Confusion() );
22 inline bool ValuesMoreEquals( const double& theFirst, const double& theSecond )
24 return theFirst >= theSecond || ValuesEquals( theFirst, theSecond );
27 inline bool ValuesLessEquals( const double& theFirst, const double& theSecond )
29 return theFirst <= theSecond || ValuesEquals( theFirst, theSecond );