24 #ifndef _ALMOST_EQUAL_HPP_
25 #define _ALMOST_EQUAL_HPP_
36 template <
typename float_type>
39 float_type
scale = a==float_type(0.0) ? float_type(1.0) : a;
48 #endif // _ALMOST_EQUAL_HPP_
bool almost_equal(float_type a, float_type b, int multiplier=1)
void scale(InputIterator begin, InputIterator end, std::pair< typename std::iterator_traits< InputIterator >::value_type, typename std::iterator_traits< InputIterator >::value_type > &scaled, bool center=true, bool scale=true)
scale centers and/or scales all values from begin in to end.