mirror of https://github.com/AxioDL/zeus.git
Add `double` version of close_enough
This commit is contained in:
parent
f82efe0583
commit
26ea606a09
|
@ -162,6 +162,11 @@ inline bool close_enough(float a, float b, double epsilon = 0.000009999999747378
|
|||
{
|
||||
return std::fabs(a - b) < epsilon;
|
||||
}
|
||||
|
||||
inline bool close_enough(double a, double b, double epsilon = 0.000009999999747378752)
|
||||
{
|
||||
return std::fabs(a - b) < epsilon;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // MATH_HPP
|
||||
|
|
Loading…
Reference in New Issue