CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
FloatingPoint.hpp File Reference
#include <cmath>
#include <limits>
#include <numeric>

Go to the source code of this file.

Namespaces

namespace  Math
 

Functions

template<typename T >
bool Math::approxEquals (T a, T b, T tolerance=std::numeric_limits< T >::epsilon())
 Compare two doubles, using tolerance for inaccuracies.
 
template<typename T >
bool Math::nearZero (T a, T tolerance=T(1e-8))
 Return true iff a is almost zero.