Add a NearZero for temporary values

This commit is contained in:
Eryn Wells 2014-08-02 14:10:04 -07:00
parent 0d4b700546
commit 57f3154986

View file

@ -52,6 +52,18 @@ NearZero(Double& value)
}
/**
* Same as NearZero, but for temporary values.
*
* @see NearZero
*/
inline bool
NearZero(Double&& value)
{
return std::fabs(value) < EPSILON;
}
inline bool
TooFar(Double& value)
{