rsvs3D  0.0.0
Codes for the c++ implementation of the 3D RSVS
rsvsutils.hpp
Go to the documentation of this file.
1 
7 //===============================================
8 // Include Guards
9 #ifndef RSVSUTILS_H_INCLUDED
10 #define RSVSUTILS_H_INCLUDED
11 
12 #include <cfloat>
13 #include <cmath>
14 
15 namespace rsvs3d
16 {
17 namespace utils
18 {
19 inline bool IsAproxEqual(double d1, double d2, double tol = DBL_EPSILON)
20 {
21  return (fabs(d1 - d2) < tol);
22 }
23 } // namespace utils
24 } // namespace rsvs3d
25 
26 #endif // RSVSUTILS_H_INCLUDED
Namespace for general purpose tools of the RSVS project.
Definition: snake.cpp:1464