]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Tools class for HYDROData.
authoradv <adv@opencascade.com>
Fri, 30 Aug 2013 07:30:46 +0000 (07:30 +0000)
committeradv <adv@opencascade.com>
Fri, 30 Aug 2013 07:30:46 +0000 (07:30 +0000)
src/HYDROData/HYDROData.vcproj
src/HYDROData/HYDROData_Tool.cxx [new file with mode: 0644]
src/HYDROData/HYDROData_Tool.h [new file with mode: 0644]

index 7d2363f6082ecf9d5dd9825c9315cecf335ae9f1..9310c5568558682159589e4ba925ebf424cec912 100644 (file)
                                RelativePath=".\HYDROData_Polyline.cxx"
                                >
                        </File>
+                       <File
+                               RelativePath=".\HYDROData_Tool.cxx"
+                               >
+                       </File>
                        <File
                                RelativePath=".\HYDROData_VisualState.cxx"
                                >
                                RelativePath=".\HYDROData_Polyline.h"
                                >
                        </File>
+                       <File
+                               RelativePath=".\HYDROData_Tool.h"
+                               >
+                       </File>
                        <File
                                RelativePath=".\HYDROData_VisualState.h"
                                >
diff --git a/src/HYDROData/HYDROData_Tool.cxx b/src/HYDROData/HYDROData_Tool.cxx
new file mode 100644 (file)
index 0000000..9ed8f0b
--- /dev/null
@@ -0,0 +1,2 @@
+
+#include "HYDROData_Tool.h"
diff --git a/src/HYDROData/HYDROData_Tool.h b/src/HYDROData/HYDROData_Tool.h
new file mode 100644 (file)
index 0000000..e230601
--- /dev/null
@@ -0,0 +1,37 @@
+
+#ifndef HYDROData_Tool_HeaderFile
+#define HYDROData_Tool_HeaderFile
+
+#include <Precision.hxx>
+
+
+
+class HYDROData_Tool {
+
+public:
+
+
+};
+
+inline bool ValuesEquals( const double& theFirst, const double& theSecond )
+{
+  return theFirst > ( theSecond - Precision::Confusion() ) &&
+         theFirst < ( theSecond + Precision::Confusion() );
+}
+
+inline bool ValuesMoreEquals( const double& theFirst, const double& theSecond )
+{
+  return theFirst >= theSecond || ValuesEquals( theFirst, theSecond );
+}
+
+inline  bool ValuesLessEquals( const double& theFirst, const double& theSecond )
+{
+  return theFirst <= theSecond || ValuesEquals( theFirst, theSecond );
+}
+
+
+
+
+#endif
+
+