2 real.hh -- declare Real
4 source file of the Flower Library
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
16 MacOS 10.3 uses g++ 3.3 which doesn't have std::isinf()
24 extern const Real infinity_f;
28 template<class T> inline T abs (T x)
30 return x > 0 ? x : -x;
36 distance (Real x, Real y)
41 template<class T> inline int sign (T x)
44 return x > T (0) ? 1 : -1;
48 template<class T> inline T sqr (T x)