Add almost_zero wrapper for almost_equal
This commit is contained in:
parent
946d4d1eb0
commit
2ef2554316
@ -87,6 +87,12 @@ typename std::enable_if<
|
|||||||
almost_equal (const Ta &a, const Tb &b)
|
almost_equal (const Ta &a, const Tb &b)
|
||||||
{ return a == b; }
|
{ return a == b; }
|
||||||
|
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
bool
|
||||||
|
almost_zero (T a)
|
||||||
|
{ return almost_equal (a, 0); }
|
||||||
|
|
||||||
const double PI = 3.141592653589793238462643;
|
const double PI = 3.141592653589793238462643;
|
||||||
|
|
||||||
inline double
|
inline double
|
||||||
|
Loading…
Reference in New Issue
Block a user