Salome HOME
Convert to Unix format
[modules/hydro.git] / src / HYDROData / HYDROData_Tool.h
1
2 #ifndef HYDROData_Tool_HeaderFile
3 #define HYDROData_Tool_HeaderFile
4
5 #include <Precision.hxx>
6
7
8
9 class HYDROData_Tool {
10
11 public:
12
13
14 };
15
16 inline bool ValuesEquals( const double& theFirst, const double& theSecond )
17 {
18   return theFirst > ( theSecond - Precision::Confusion() ) &&
19          theFirst < ( theSecond + Precision::Confusion() );
20 }
21
22 inline bool ValuesMoreEquals( const double& theFirst, const double& theSecond )
23 {
24   return theFirst >= theSecond || ValuesEquals( theFirst, theSecond );
25 }
26
27 inline  bool ValuesLessEquals( const double& theFirst, const double& theSecond )
28 {
29   return theFirst <= theSecond || ValuesEquals( theFirst, theSecond );
30 }
31
32
33
34
35 #endif
36
37